Dimensional Models and Lakehouses
Ta treść nie jest jeszcze dostępna w Twoim języku.
The question this module answers: Why does data prepared for analytics use different shapes from the Salesforce transactional model?
Most of this course has been about running the business: create the delivery, assign the crew, update the status, open the case, complete the Work Order. Those are transactions.
Now Steve Trucking’s leadership walks in with a different kind of question. Which Retail Partners are becoming more profitable? Which DCs have the highest share of late deliveries? Do some crews have more damage claims, or just harder routes? How did on-time delivery change the year we added a fourth partner? Salesforce holds pieces of those answers. Not all of them, and it was never built to answer them all. Analysis is a different job.
So we ask the chapter’s question once more, what are you going to do with the data?, and this time the answer is: understand the business. That changes the shape.
The Operational Model Has a Different Job
Section titled “The Operational Model Has a Different Job”The Steve Trucking model we’ve built is excellent at its job. A Work Order with its line items, a Service Appointment, the crew assigned to it, a case when something goes wrong. We built it for transactional integrity, the current state, security, automation, and who may change what. That’s exactly what it should care about.
Now try to analyze five years of deliveries. The answer needs Salesforce’s deliveries, the finance ERP’s invoices and credits, FleetLink’s routes, RouteDesk’s history from before Salesforce, and maybe fuel prices and weather. Which application owns that answer? None of them. The answer comes from bringing several sources together, and that’s the line I want you to see: a warehouse, a lake or a lakehouse isn’t a bigger Salesforce database. It has a different purpose.
Don’t Turn the Operational Org Into the Warehouse
Section titled “Don’t Turn the Operational Org Into the Warehouse”“We already have the data in Salesforce. Why not just report from there?” Sometimes that’s exactly right. Today’s open Work Orders by DC, this week’s exceptions for a coordinator (RP3): Salesforce reports do that well, on live data.
But five years of delivery profitability is a different problem. Copy the ERP, FleetLink and RouteDesk into the org that runs deliveries, as ordinary records, to answer it, and that org becomes the integration point and the history store for the whole company: more volume, more storage, more copies of personal data, more to secure and retain, slower operations. So the history goes to a platform built for analysis. Steve Trucking already runs one, Snowflake, and keeps the status changes, completed deliveries after 13 months and RouteDesk’s eight years there. That’s one good answer, not the only one: the analytical platform can just as well be Salesforce’s own, as we’ll see. The system that runs the business doesn’t have to be the system that analyzes the whole business. The line is between two jobs, not between two vendors.
Start With the Questions
Section titled “Start With the Questions”Analytical models look different because analytical questions look different. Operational questions are about one thing: delivery REDROCK-8472914-1, its status, who’s assigned, can I change it. Analytical questions are about many things at once: how many, how much, compared with what, over what period, grouped how, and how has it changed.
Steve Trucking wrote two of these down in its requirements. Each Retail Partner sees on-time rate, damage rate and install quality, by DC and by day (RP1). Leadership sees volume, on-time, claims and revenue by Retail Partner, DC and crew, over five years (RP2). Read them closely, because they’re already telling us the structure: there’s something we measure (deliveries, minutes late, claims, revenue), and there are the ways we want to slice it (partner, DC, crew, day). That’s a dimensional model.
I built exactly this kind of thing on flight data when I was learning Data 360’s calculated insights. I grouped the flights by arrival airport: that was one of the dimensions, and the measure was a count. Then I said, let’s add the month as a factor, and we needed another dimension. One measure, sliced more and more ways. That’s the whole idea.
Facts: What Happened
Section titled “Facts: What Happened”In a dimensional model, a fact records something that happened, with the numbers you can measure about it. For Steve Trucking: a delivery happened, it was so many minutes late, it had so many items, it earned so much revenue, it led to so many claims.
Every fact table has a grain, and grain is the most important word in this module. It answers one question: what does one row represent? One row per completed delivery? Per delivery item? Per status change? Per truck per minute? Those are four very different datasets.
Get the grain wrong and you get very convincing reports that are wrong. A delivery with a washer and a haul-away has two items. Build one row per item, then count rows as deliveries, and one delivery just became two. The dashboard looks beautiful. The math is wrong. So before anyone draws facts and dimensions, I want one sentence written down: one row represents ____. For Steve Trucking’s delivery fact: one row per completed delivery.
Dimensions: How You Want to Look at It
Section titled “Dimensions: How You Want to Look at It”A dimension gives a fact its context, the ways the business wants to slice it. For Steve Trucking: the date, the Retail Partner, the DC, the crew, the truck and route, and the kind of stop (delivery only, with install, with haul-away).
A fact on its own says very little: one delivery, 12 minutes late. With dimensions it answers questions: late deliveries for Redrock, at the Dallas DC, in September, on install stops. Put the facts in the middle and the dimensions around them, and you get the classic analytical shape, the star schema.
Don’t Grade a Star Schema by Third Normal Form
Section titled “Don’t Grade a Star Schema by Third Normal Form”This is where relational architects get uncomfortable. “Wait, the DC dimension repeats the region on every DC. Couldn’t we normalize that?” Maybe. “Why not just use the operational tables?” Because it’s a different problem. The transactional model keeps the transaction correct. The analytical model makes the business easy and fast to analyze. Those goals overlap; they aren’t the same.
Judging a star schema by Third Normal Form is like judging a delivery truck by how fast it corners. Different job, different design. And a dimensional model isn’t free of discipline. It has its own: the grain, the keys, the history, and above all the definitions. What counts as “on time”: within the window the Recipient was given, or within the window after a reschedule? That definition matters more than any table.
History Becomes Part of the Question
Section titled “History Becomes Part of the Question”Analysis also forces the history question we met in module 1, and chapter 2 raised it first (Design to Third Normal Form, Then Back Off): if a DC moves to another region today, should last year’s deliveries show the new region or the old one?
There’s no universal answer. It’s a business decision. But the analytical design has to support whichever answer the business chooses. The operational system cares about what’s true now. The analytical system often needs what was true when it happened. So dimensional models deliberately keep old versions of descriptive data: the DC in its old region, with the dates it was there, beside the DC in its new one. Data engineers call these slowly changing dimensions. It’s effective dating again, from module 1, put to work.
History has a second edge. Leadership wants damage claims by crew (RP2). But years of history can record the routes a crew was given, not just how well it worked: the crew sent to the oldest buildings with the narrowest stairs will have more claims. Salesforce’s own guidance warns about this for any model built on history: an anti-pattern where “Historical conversion data is used directly without auditing whether different demographics received different treatment”; proxy fields such as “territory, zip code, account name patterns, activity timing, device type” that can stand in for protected traits; and the mistaken belief that removing protected characteristics “automatically eliminates bias” (Salesforce Well-Architected, AI Ethics and Governance - Patterns (opens in a new tab), checked 2026-11-28). If Steve Trucking ever scores crews, or trains a model on this history, the analytical design should keep what’s needed to check for that: the route difficulty, not just the claim count.
A Warehouse Brings the Enterprise Together
Section titled “A Warehouse Brings the Enterprise Together”Zoom out. Where does all this come from? Salesforce, the finance ERP, FleetLink, RouteDesk’s archive, the partners’ files, outside data such as weather. A data warehouse brings data from those different sources together, prepared for analysis.
That’s why I want you to think of the warehouse as a separate architectural approach, not “Salesforce exported into wider tables.” It needs its own decisions: identity across sources, shared definitions, history, data quality, how fresh each source is, security and lineage. If Salesforce calls the partner “Redrock” and the ERP calls it “CUST-00492,” the warehouse has to know they’re the same business before it can put them in one report. The identity and master data work from Part 1 didn’t go away. This is where it pays off.
The Lake Keeps What You Can’t Shape Yet
Section titled “The Lake Keeps What You Can’t Shape Yet”A warehouse expects data to be prepared before it arrives. But companies now keep enormous amounts that doesn’t start that way: raw JSON, logs, GPS readings, CSV files, events, images. And they want to keep it before they know every question they’ll ask. That’s the idea of a data lake: lots of data, kept in its raw or nearly raw form, in inexpensive storage.
That gives you flexibility, but flexibility isn’t usefulness. Thousands of files in cheap storage aren’t an analytics architecture. You still need a catalog, metadata, identity, quality, security, governance, and someone who knows what the data means. Without those, you haven’t built a data lake. You’ve built a place where data goes to hide.
From Lake to Lakehouse
Section titled “From Lake to Lakehouse”A lakehouse brings the warehouse’s strengths (reliable tables, governance, fast queries) to data kept the lake’s way. You don’t need to become a data engineer or learn one vendor’s version. You need the direction of travel, and it usually has three stages:
- Raw (often called bronze): close to what arrived, kept so you can always go back to the source.
- Trusted (silver): cleaned, checked, standardized, with identities matched across sources.
- Ready for the business (gold): shaped for the questions, like the delivery star schema.
Don’t get attached to the metal names. The idea that matters is that arrived, trusted and ready-for-the-business are different states of the same data, each with its own rules. If you’ve worked with Data 360, you’ve seen this path: data lands in data lake objects as it arrived, and mapping it into data model objects is where it gets harmonized and shaped. And Data 360 is built on an open table format: Salesforce says it “leverages Apache Iceberg, a high-performance open table format” (Salesforce, Zero Copy (opens in a new tab), checked 2026-11-28), the same kind of format many lakehouses use.
A Copy Isn’t the Authority
Section titled “A Copy Isn’t the Authority”Copy Salesforce’s Work Orders into the lake and the Work Order exists in two places. Did the copy become authoritative? No. Salesforce still owns the operational Work Order; the lake holds a representation for another job. Turn it into a delivery fact and that’s a third representation. That’s fine: one source can have several representations, as module 1 said.
But for each one I want to know: where did it come from, when was it copied, what changed it on the way, which rules were applied, and which source owns the original. That’s lineage, and it’s what answers the question every executive asks eventually: “Where did this number come from?” If the architecture can’t answer that, I don’t trust the number.
Gold Isn’t Automatically Truth
Section titled “Gold Isn’t Automatically Truth”A polished dashboard doesn’t make the data right, and neither does calling a layer “gold.” Suppose operations counts a delivery as complete when the crew taps Delivered, and finance counts it when it’s invoiced. Both datasets are clean. Both are valid. They’ll still disagree at the end of every month, and both teams will be right by their own definition.
So analytics architecture isn’t only moving data. It includes decisions about meaning: what’s a completed delivery, what’s on time, what’s revenue (booked, invoiced, net of damage credits?), which date a report uses. Those definitions matter as much as the storage. And they matter even more once an agent is answering the question instead of a person: an agent can find the right column and still give the wrong answer if nobody decided what the word means. Module 5 ends there.
The Whole Topology, Salesforce Included
Section titled “The Whole Topology, Salesforce Included”This chapter is about recognizing the full set of shapes and places a data architect may work with, and analytics has more of them than anything else. So here’s the topology, with Salesforce’s own parts in it, because a fair architecture considers all of them.
| The job | On the Salesforce platform | Elsewhere |
|---|---|---|
| Live operational reporting: today’s deliveries, this week’s exceptions | Reports and dashboards, on the org’s own records | |
| Analysis inside Salesforce apps, on data copied and reshaped for analysis | CRM Analytics (earlier called Einstein Analytics, then Tableau CRM) | |
| Visual and agentic analytics across many sources | Tableau; Tableau Next, built on Data 360 | Tableau also reads warehouses and lakes directly |
| Bringing enterprise data together: raw, trusted, ready | Data 360: data lake objects, data model objects, calculated insights | Data warehouses and lakehouses, such as Snowflake, Databricks, BigQuery and Redshift |
| Connecting the two sides without another copy | Zero copy, in both directions | The same open table formats |
A few facts from Salesforce, dated, because this part of the platform changes quickly. Tableau Next is described as “Built on Data 360 and with native Agentforce integration,” with “Tableau Semantics, an AI-infused semantic layer integrated into Data 360.” CRM Analytics is still a product: on the difference between the two, Salesforce says “Both products are hosted and maintained by Salesforce,” that Tableau Next is the path to its newest agentic analytics, and that “CRM Analytics will continue to exist for customers who are not ready for that journey” (Salesforce, Tableau Next (opens in a new tab), checked 2026-11-28). And zero copy lets Data 360 use tables in Snowflake, Databricks, Redshift or BigQuery without copying them in, and lets external lakes query Data 360’s unified tables (Salesforce, Zero Copy (opens in a new tab), checked 2026-11-28).
So how do you choose? Not by loyalty to a stack, in either direction. Ask what each part must do, where the data already lives, what the company already runs and knows, who has to use the answer, and how many copies you’re willing to own and protect. A Salesforce-centered company may do all of it inside Salesforce. A company with years in an open-source lakehouse may keep its analytics there and connect Salesforce to it. Most will mix, and zero copy exists precisely because they do.
Steve Trucking is a mix, too. It runs Snowflake today, and it licensed Data 360 in 2026 without implementing it yet. How the two work together is a decision for later in this course: chapter 14 looks at copying, federating and zero copy, and chapter 15 at Data 360 in the enterprise. The dimensional thinking in this module doesn’t change either way. A star schema needs a grain, wherever it lives.
Salesforce Still Has the Central Job
Section titled “Salesforce Still Has the Central Job”None of this makes Salesforce smaller. It makes its roles clearer. Salesforce’s org is the authority for the Work Order, the current status, the appointment, the case, the partner relationship and the Recipient details a delivery needs. Analysis takes those facts, adds what other systems know, and builds the shapes it needs, on Salesforce’s own analytics and Data 360, on a warehouse or lakehouse the company already runs, or both. The org runs the business. An analytical platform, Salesforce’s or another, helps the business understand itself across all its systems. Different job, different shape.
What an Architect Decides Here
Section titled “What an Architect Decides Here”- Which questions are operational and which are analytical, and where each is answered.
- The grain of every fact, written down before anything is built.
- The dimensions, and how their history is kept when they change.
- Where data is raw, trusted and ready, and the rules at each stage.
- Identity, lineage and definitions across every source.
- What history can and can’t fairly say, before anyone scores people or trains a model on it.
- Which analytical platforms, Salesforce’s and others, do which job, and how they connect with as few copies as possible.
Beyond the exam: agents answer analytical questions now, in plain language, against the same data. They inherit every weakness in it: an unclear grain, a metric defined two ways, history that records the work people were given rather than how they did it. Define the meaning before the agent asks.
Explore
Section titled “Explore”- Module 1, Where Relational Stops; chapter 2, Design to Third Normal Form, Then Back Off; chapter 12, Checkpoint 2.
- Salesforce: Tableau Next (opens in a new tab) and Zero Copy (opens in a new tab), checked 2026-11-28.
- Salesforce Well-Architected: AI Ethics and Governance - Patterns (opens in a new tab), checked 2026-11-28.
