The Order Changed Today. How Do I Reconcile Yesterday's Sales?
A small beverage example of late changes, three counts and one habit before the report refreshes.

Lately I have been thinking about a boring question that every sales report runs into. The report looked right at 6 pm. At 9 am the next day, someone edits an order. Now what does "yesterday's sales" mean?
Simply put, the source system keeps changing after your warehouse has copied it. If your load cannot handle that, your numbers will drift, and nobody will notice until a manager asks why two reports disagree.
I will use a made-up beverage distributor, so no real data is involved. Order 1001 was loaded last night with three lines: 10 cases of water, 5 cases of cola and 4 cases of juice. This morning the sales team changes the cola to 8 cases and cancels the juice line. This article follows the grain article, Before I Build a Data Warehouse, What Does One Row Mean?, so one row stays one order line.
Why not just reload everything?
The easy answer is to truncate the fact table and load it again. For a tiny table, that is fine. For a large one, it can be slow, and while it runs your report may show only part of the day.
Microsoft's guidance for Fabric Warehouse says truncate and reload of a large fact table should be a last resort. It suggests incremental loads using a high-watermark, change data capture or change tracking instead. It also says to log how many rows were inserted, updated and deleted for each run. See Microsoft's page on loading dimensional model tables. I have not run Fabric for this example, and products change, so please read the page on the day you use it (as of November 2026).
There is a second point in that guidance that I like. A cancelled order should be an update, for example status Open to Canceled, and not a deleted row. A soft delete keeps the history, and the report filters the cancelled lines out. Think of it like crossing out a line in a paper ledger. You can still read what was there, and you can still explain why yesterday's number was different.
So the fact table needs two things. One is the order number and line number, kept as a key you can match on. The other is a status column. Without a stable key you cannot find the row that changed.
What are the three counts?
Before the report refreshes, you want three numbers to agree: the source, the staging copy and the fact table. For each one, count the active lines and add up the cases for the business date.
My plan is to write these into a small table at the end of every load. I will test it on a tiny synthetic set: order 1001 from above plus two other orders. You can copy the idea:
| Check | Source | Staging | Fact before update | Fact after update | Agree? |
|---|---|---|---|---|---|
| Active lines for the date | lab result needed | lab result needed | lab result needed | lab result needed | lab result needed |
| Total cases for the date | lab result needed | lab result needed | lab result needed | lab result needed | lab result needed |
| Cancelled lines for the date | lab result needed | lab result needed | lab result needed | lab result needed | lab result needed |
Lab result needed. I have not run this lab yet. I will run it later and fill in the table, so please read the empty cells as a plan, not a result.
The logic is simple. Match staging to fact on order number and line number. If the key exists and something changed, update it. If the key is missing, insert it. If the source says cancelled, set the status and keep the row. Here is the update step, on invented table names:
-- synthetic example: apply today's change to the fact table
UPDATE fact_order_line
SET quantity = s.quantity,
status = s.status
FROM stg_order_line s
WHERE fact_order_line.order_no = s.order_no
AND fact_order_line.line_no = s.line_no;
After this, compare the three counts again. If they still disagree, the report should not refresh. In my view, a stale report that is correct is better than a fresh one that is wrong.
There is a note to take here. Fabric Warehouse does not enforce foreign keys, so your load has to check them. If a product code in a late order is not in the product table yet, the same guidance says to still insert the fact row with an Unknown member and fix it later. I would rather see a row marked Unknown than lose a sale.
When does a dimension need history?
Now a different change. Say the cola moves from the category "Soft drinks" to "Sugary drinks" in March. If you simply overwrite the product row, a report for January now shows cola under the new name. That is a type 1 change, and sometimes it is what you want, for example when you fix a spelling mistake.
If January should stay under the old category, you need a type 2 dimension. The old row gets an end date and a flag that it is no longer current, and a new row is added with a new key. The same Microsoft page describes this. It also warns that when a dimension uses generated surrogate keys, you should not truncate and reload it, because that breaks the facts.
You do not need type 2 on every column. In my view, keep it for the ones where somebody will ask "what was it at the time?", like category, region or price band. For the rest, overwrite and move on. You may feel differently if your auditors ask for more, and that is fine.
What can you try this week?
Pick one table you load every day. Take a date from last week and count the active lines in the source, in your staging copy and in the final table. Write the three numbers down. If they agree, good. If they do not, you have found something worth fixing before the next report.
Next time I will move from the load to the question that sits on top of it: Before an AI Assistant Answers "How Much Did We Sell?".