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

# Decide what a summary is allowed to forget
- URL: https://abundance.alloconomy.com/alloconomy/de-interview-decide-what-a-summary-is-allowed-to-forget/
- Published: 2026-11-22T05:09:06.000Z
- Updated: 2026-11-22T16:31:01.000Z
- Description: A weekly rollup receives daily active readers, daily conversion rates, and daily shipped units.
- Author: Sathya Narayanan
- Tags: Alloconomy, Data Engineering, Data Engineering Interview Field Guide, #web-only, #series-detail, #Import 2026-11-21 19:24, Less familiar fact patterns

1. [Collection · 10 seriesThe Data Engineering Interview Field Guide](https://abundance.alloconomy.com/alloconomy/data-engineering-interview-field-guide/)
2. [Series opening · 3 essaysLess familiar fact patternsSeries 3 of 10](https://abundance.alloconomy.com/alloconomy/de-interview-find-the-dispatch-that-never-happened/)
3. This essay3 of 3

Data engineering · 3 essays

Less familiar fact patterns

Complete reading path · You are in Part 3 of 3
1. Part 1[Find the dispatch that never happened](https://abundance.alloconomy.com/alloconomy/de-interview-find-the-dispatch-that-never-happened/)Twenty eligible titles were promised a Friday promotion in each of two stores.
2. Part 2[Store the interval between changes](https://abundance.alloconomy.com/alloconomy/de-interview-store-the-interval-between-changes/)Stock is 14 units from Monday 09:00, 11 from Thursday 12:00, and 13 from Friday 08:00.
3. Part 3**Decide what a summary is allowed to forget**Current essayA weekly rollup receives daily active readers, daily conversion rates, and daily shipped units.

## The interview prompt

A weekly rollup receives daily active readers, daily conversion rates, and daily shipped units. Which values can it use directly? Give one example where averaging the daily conversion percentages changes the business conclusion.

## Keep enough information for the next grouping

On Friday, one visitor buys and one visits, so the conversion rate is 100%. On Saturday, nine distinct visitors buy among 99 visitors, about 9.09%. Assuming the two populations are disjoint, the two-day visitor conversion is 10/100, or 10%. An unweighted average of the two percentages is about 54.55%. Keeping daily numerators and denominators solves the weighting problem in this particular example.

Change the assumption. If Friday’s visitor returns Saturday, adding daily visitor counts no longer yields unique visitors across days. For a metric defined per session, counts of disjointly assigned sessions could still be added. For distinct people, retain stable identities at a suitable grain or use a mergeable distinct-count sketch when approximation is acceptable. Agreement on the denominator precedes the choice of storage.

Summing daily shipped units works when the same physical unit enters one dispatch occurrence and correction handling is consistent. A precomputed product-week table should say which calendar and timezone assign the week, how late corrections refresh it, and which queries require atomic detail. Those three lines of documentation may matter more than its compression ratio.

## The model behind the answer

A daily product summary makes the bestseller page cheap. It can store units shipped and dispatch count per product per day. It has already discarded order identity. If the school receives parcels on two different days, adding the two daily distinct-order counts yields two for a week in which only one order was served. Compute distinct orders at the requested grain from retained identities, or agree on an approximate method and its error.

An **aggregate fact** summarizes one process. A **consolidated fact** can put measures from different processes together once their dimensions and grain agree. A product-day table could hold accepted units and dispatched units, each assigned to its stated business date. Preserve days with activity from only one process.

The denominator deserves the same scrutiny. Six shipped divided by six ordered over a week need not mean every order placed that week shipped. Fulfillment of an order cohort requires the order-line relationship. [Kimball on consolidated facts](https://www.kimballgroup.com/data-warehouse-business-intelligence-resources/kimball-techniques/dimensional-modeling-techniques/consolidated-fact-table/?ref=abundance.alloconomy.com)

## Try it in SQLite

Average a conversion rate

Compare averaging two daily percentages with aggregating the underlying counts. In this fixture, each visitor appears on exactly one day.

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 metric specification survive a second week

The agent’s weekly conversion query passes a two-day example with disjoint visitors. Ask it to state the unit of the denominator. Hold back a second week where the same visitor comes twice, once each day, and buys on day two.

**Reviewer decision.** One distinct person visited and one bought. For a per-person measure the answer is 100%. With one session each day, per-session conversion is 50%. The reviewer should ask for identities or a stated approximation if the daily rollup has already discarded the overlap.

*Further reading.* [The Data Warehouse Toolkit](https://www.amazon.com/dp/1118530802?ref=abundance.alloconomy.com), 3rd ed., on aggregating the components of non-additive measures.

## One more question

A manager asks for the 95th percentile of daily fulfillment times over a month. Can the weekly job aggregate daily p95 values?

Check your reasoning

Clarify whether the question concerns individual fulfillments or the distribution of the daily p95s. For the former, retain durations or a suitably mergeable distribution summary. Daily percentiles and sample counts do not determine the combined percentile. Test a quiet day with one very slow order and a busy day with thousands of fast ones.

1. [Back to the series openingLess familiar fact patternsSeries 3 of 10](https://abundance.alloconomy.com/alloconomy/de-interview-find-the-dispatch-that-never-happened/)
2. [Explore the collectionThe Data Engineering Interview Field Guide](https://abundance.alloconomy.com/alloconomy/data-engineering-interview-field-guide/)

[Previous · Store the interval between changes](https://abundance.alloconomy.com/alloconomy/de-interview-store-the-interval-between-changes/) · [Next · Two storefronts both sell product 42](https://abundance.alloconomy.com/alloconomy/de-interview-two-storefronts-both-sell-product-42/) · [Complete series map](https://abundance.alloconomy.com/alloconomy/data-engineering-interview-field-guide/)