> ## Content Index
> Fetch the complete content index at: https://abundance.alloconomy.com/llms.txt
> Use this file to discover other available public pages before exploring further.

# Reproduce the report before the correction
- URL: https://abundance.alloconomy.com/alloconomy/de-interview-reproduce-the-report-before-the-correction/
- Published: 2026-11-22T05:08:17.000Z
- Updated: 2026-11-22T16:31:30.000Z
- Description: On May 4, Maya’s report assigned a May 3 sale to East.
- Author: Sathya Narayanan
- Tags: Alloconomy, Data Engineering, Data Engineering Interview Field Guide, #web-only, #series-detail, #Import 2026-11-21 19:24, Slowly changing dimensions and historical truth

1. [Collection · 10 seriesThe Data Engineering Interview Field Guide](https://abundance.alloconomy.com/alloconomy/data-engineering-interview-field-guide/)
2. [Series opening · 3 essaysSlowly changing dimensions and historical truthSeries 5 of 10](https://abundance.alloconomy.com/alloconomy/de-interview-which-changes-deserve-a-new-row/)
3. This essay3 of 3

Data engineering · 3 essays

Slowly changing dimensions and historical truth

Complete reading path · You are in Part 3 of 3
1. Part 1[Which changes deserve a new row](https://abundance.alloconomy.com/alloconomy/de-interview-which-changes-deserve-a-new-row/)One customer record contains original signup channel, a misspelled city, current region, and a weekly engagement band.
2. Part 2[Resolve the version at the sale](https://abundance.alloconomy.com/alloconomy/de-interview-resolve-the-version-at-the-sale/)A customer has East valid up to May 1 and West from May 1.
3. Part 3**Reproduce the report before the correction**Current essayOn May 4, Maya’s report assigned a May 3 sale to East.

## The interview prompt

On May 4, Maya’s report assigned a May 3 sale to East. On May 10 the warehouse learned the customer had moved on May 1\. Show the same sale as the May 4 report saw it and as the corrected May 11 report sees it.

## Hold the sale fixed and move the knowledge cutoff

Think of two axes. Select the dimension records knowable at the report’s recorded-time cutoff. Then, within those records, select the classification effective on the sale date. On May 4, the record known at that time says East with no known end. On May 10 that assertion is superseded. The new information says East through April 30 and West from May 1\. Preserve the superseded assertion if arbitrary historical reruns are required.

The May 3 sale therefore resolves to East with a May 4 knowledge cutoff and West with a May 11 cutoff. A report about April 29 still resolves to East under either knowledge cutoff. That third test distinguishes a proper correction from a blanket reassignment of all the customer’s history.

A reproducible release also depends on inputs beyond the dimension. If the sale itself arrived May 6, a genuine May 4 report could not contain it. Apply knowledge-time eligibility to the fact population too, or retain an immutable release snapshot. Changes to query logic, exchange rates, and calendars can likewise affect an issued total. Establish the scope of reproducibility before promising a complete audit trail.

## The model behind the answer

Keep the May 1 move. This time the May 3 sale arrived promptly, but the warehouse learned of the move on May 10\. The report sent on May 4 put the sale in East. A corrected report run later puts it in West. Both can be accurate accounts of what their authors knew.

To reproduce both answers, retain two histories. **Valid time** says when the move applied to the customer. **Recorded time** says when that version of the information became known to the reporting system. An effective-dated table that gets rewritten on May 10 can answer the corrected question and lose the evidence for the May 4 answer.

If the only obligation is to reproduce an issued monthly statement, an immutable report version with its inputs and definition may suffice. If analysts need arbitrary “as known on” queries between statements, they need finer recorded-time history. Ask which promise the business has actually made before paying for the more demanding design. [Martin Fowler on bitemporal history](https://martinfowler.com/articles/bitemporal-history.html?ref=abundance.alloconomy.com)

## Try it in SQLite

Rerun the same sale on two reporting dates

Keep May 3 fixed as the sale date. Change the knowledge cutoff and observe the region the analyst could report.

Tables and sample dataExample query Your SQL

Run SQLStopReset example

Each run starts with fresh sample data. Use Ctrl+Enter or ⌘+Enter to run. Only your browser processes the query.

Label Measure 

## Make a historical rerun reproducible

Ask the agent for a replay command and a release manifest containing the input versions, business-time cutoff, knowledge-time cutoff and transformation revision. Keep the May 3 sale fixed. Rebuild the issued May 4 report and a corrected May 11 report in separate outputs.

**Reviewer decision.** The first puts the sale in East and the second in West. A fresh run must also exclude a sale first received May 6 from the May 4 release. Kimball and Ross describe restating affected facts. Keeping both what was known and what was effective is the extra requirement in this exercise.

*Further reading.* [The Data Warehouse Toolkit](https://www.amazon.com/dp/1118530802?ref=abundance.alloconomy.com), 3rd ed., on retroactive changes to dimension context.

## One more question

The corrected and original dashboards agree at company level. How can you show a change took place?

Check your reasoning

Compare contributors by stable sale identity, amount, and category under both cutoffs. The same sale moved between East and West while the company total stayed fixed. Report both the unchanged control total and the two offsetting regional movements.

1. [Back to the series openingSlowly changing dimensions and historical truthSeries 5 of 10](https://abundance.alloconomy.com/alloconomy/de-interview-which-changes-deserve-a-new-row/)
2. [Explore the collectionThe Data Engineering Interview Field Guide](https://abundance.alloconomy.com/alloconomy/data-engineering-interview-field-guide/)

[Previous · Resolve the version at the sale](https://abundance.alloconomy.com/alloconomy/de-interview-resolve-the-version-at-the-sale/) · [Next · Compare shipments and refunds without multiplying either](https://abundance.alloconomy.com/alloconomy/de-interview-compare-shipments-and-refunds-without-multiplying-either/) · [Complete series map](https://abundance.alloconomy.com/alloconomy/data-engineering-interview-field-guide/)