Why last quarter's numbers changed when nobody touched the code
Kimball's The Data Warehouse Toolkit named the mechanism long ago, and dbt snapshots still implement his fix for it, SCD Type 2.

In brief
- The book by Ralph Kimball and Margy Ross (Wiley, 2013) is the primary source on dimensional modeling and still applies directly to today's dbt stack.
- SCD Type 1 overwrites and erases history; Type 2 adds a new row with its own surrogate key, so each fact points to the version in force when it happened.
- Three ideas to keep: fix the grain first, choose the SCD type on purpose, and define conformed dimensions once for shared use.
On a Monday morning, a client’s sales director opens the dashboard and finds that first-quarter revenue in the North has fallen since last week. Nobody changed the pipeline and nobody deleted an order. A large customer simply moved its headquarters to the South, and the system quietly rewrote the past.
If you were the FDE responsible for the data in this hypothetical, you would be the one explaining it.
That is why The Data Warehouse Toolkit, 3rd Edition, together with the dimensional modeling technique pages published by the Kimball Group, is still worth reading: they name the mechanism that makes old numbers change on their own, and show how to design so that it happens only when you mean it to.
A 2013 book is still the language of today’s stack
Ralph Kimball and Margy Ross co-wrote the third edition of the classic guide to dimensional modeling that Kimball pioneered, published by Wiley in 2013.
The book is old, yet dbt’s documentation still describes snapshots as the way to implement SCD Type 2 over mutable source tables. Type 2 is Kimball’s concept; dbt snapshots are one way of putting that idea into code.
Reading Kimball therefore tells you what problem snapshots solve, not just how to configure them. The FDE skill this material builds is turning a vague business question into a data design that can be verified, and three of its ideas are worth taking to any project.
No grain, no tables
The Kimball Group’s technique pages define the grain as what establishes exactly what a single fact table row represents, and it is the first decision to lock down. It sounds simple, but many arguments about numbers can be traced back to it.
“Each row is an order” and “each row is a product within an order” produce two different “order counts” if someone counts rows. An order with three products is counted three times at the second grain.
So the first job at a client is not opening SQL. It is writing the grain as one sentence in business language and having the client’s owner confirm it.
Overwriting is a decision, not a default
Back to the Monday morning incident. With SCD Type 1, the old value in the dimension row is replaced with the new one, and the Kimball Group’s technique page states plainly that this technique destroys history. The page also warns that affected aggregate fact tables and OLAP cubes must be recomputed.
Run the dashboard’s query in your head:
SELECT c.region, SUM(f.amount) AS revenue
FROM fact_orders f
JOIN dim_customer c ON f.customer_key = c.customer_key
WHERE f.order_date BETWEEN '2025-01-01' AND '2025-03-31'
GROUP BY c.region;
Suppose that last week the North came to 1,000, of which 300 came from customer C-07. After a Type 1 statement such as UPDATE dim_customer SET region = 'South', the identical query returns 700 for the North and pushes 300 to the South. If the regional aggregate table has not been recomputed, it still reports 1,000, and the two dashboards start to disagree.
Type 2 works differently: it adds a new row to the dimension with the updated value, assigns a new surrogate key, and that key is used as the foreign key in fact tables. The Kimball Group recommends at least three additional columns: an effective date, an expiration date and a current-row indicator. The customer dimension in the example would look like this:
| customer_key | customer_id | region | effective_date | expiration_date | is_current |
|---|---|---|---|---|---|
| 101 | C-07 | North | 2024-01-01 | 2025-06-30 | N |
| 245 | C-07 | South | 2025-07-01 | 9999-12-31 | Y |
Rerun the same SQL and first-quarter orders still join to key 101, so the North stays at 1,000, while orders from July onward point to key 245.
In a 2008 article, Kimball used himself as the example: Type 2 requires issuing a new employee record for Ralph Kimball effective July 18, 2008, rather than editing the old one.
Not every column needs Type 2. Fixing a typo in a customer’s name is a sensible overwrite. Your job is to ask the client, attribute by attribute, whether historical reports should reflect the value at the time or the value now.
Define once, use everywhere
When sales and finance each keep their own “customer” table, their dashboards rarely match. The Kimball Group’s answer is the conformed dimension: defined once, with the organization’s data governance owners, then reused across fact tables, which keeps numbers consistent and lowers future development costs.
The conditions for two dimensions to count as conformed are specific: attributes must have the same column names and the same domain contents. “North” in one table and “N” in another is enough to break that.
Read by problem, not like a novel
A route worth trying: open the Kimball Group’s Dimensional Modeling Techniques pages, read the Grain, Type 1, Type 2 and Conformed Dimensions entries in that order, then use the book to go deeper on each topic as real situations arise. Finally, open the dbt snapshots documentation to connect the theory to code.
The material suits developers who already write SQL fluently but have never been accountable for a number that leadership uses to make decisions.
On a CV, a line such as “moved the customer dimension to SCD Type 2 with dbt snapshots so historical reports stay fixed when customers change region” carries far more weight than “proficient in SQL”.
Clients rarely ask about Type 1 or Type 2. They ask why yesterday’s number differs from today’s, and the FDE who can answer that in five minutes is trusted on every question that follows.
Was this article useful?
Thanks for the feedback!
7 sources
- The Data Warehouse Toolkit, 3rd Edition (Kimball Group)
- Grain | Kimball Dimensional Modeling Techniques
- Type 1: Overwrite | Kimball Dimensional Modeling Techniques
- Type 2: Add New Row | Kimball Dimensional Modeling Techniques
- Conformed Dimensions | Kimball Dimensional Modeling Techniques
- Slowly Changing Dimensions, Part 2 · 2008-09-22
- Add snapshots to your DAG | dbt Developer Hub