Subscribe free
Alloconomy 21 Nov 2026 9 min read

Reproduce the report before the correction

On 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

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 data

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

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, 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.

Previous · Resolve the version at the sale · Next · Compare shipments and refunds without multiplying either · Complete series map