Data & evidence
Write versioned metric contracts and change reports safely
A restaurant metric is a small agreement about evidence. It specifies which records count, how amounts are interpreted, which period is covered and what a reader may infer from the result. A label such as “sales” is not that agreement. Two dashboards can use the same label, display plausible numbers and still answer different questions. This guide builds a practical contract and change-review process so a company can improve its reports without silently changing the meaning of its history.
The original laboratory follows Cedar Rooms, an invented restaurant group. Its twelve synthetic orders produce 100,000 minor units under a broad source-gross definition and 80,000 under a narrower completed-order, after-discount definition. Both calculations are reproducible, but comparing one with the other as growth creates a false 25% improvement. The exercise shows how to detect the mistake, explain the 20,000-unit difference and release a definition change with an intelligible bridge.
All records, amounts, policies and business decisions in the laboratory are fictional. The metrics are management examples, not accounting, tax or platform definitions. No customer data or account credentials are needed. Download the Original baseline: twelve-order CSV and Original baseline: expected answers before running the comparison. The aim is to create a company process another team can reproduce and challenge, not a glossary that leaves the important choices implicit.
TRY THE CASE
Compare two definitions against the same order records
Fictional inputs and stated model boundaries. The worked calculations and downloadable records below remain available without JavaScript.
- Name the management decision
- Specify population, numerator, denominator, units and time
- Freeze an independent expected-answer fixture
- Compare contract versions
- Meaning compatible? Calculate period change
- Meaning incompatible? Show definition bridge
- Review downstream decisions and restatement scope
- Publish versioned metric with evidence
1. Begin with the decision, not the dashboard tile
Cedar Rooms' operations lead wants to compare fulfilled trading activity across two review periods. The source system exports created orders, including cancelled and fully refunded records. A finance analyst also uses the export for reconciliation, where keeping those records is essential. The mistake begins when a dashboard called “sales” uses every gross amount while a later dashboard silently excludes cancelled and refunded orders and subtracts discounts.
Neither report becomes useful simply because its formula is mathematically valid. Ask what action the reader will take. A staffing comparison may need fulfilled orders and a consistent service calendar. A source reconciliation may need every exported record and its status. A cash-planning decision needs payment timing and other information. Name the decision, intended user, refresh cycle and exclusions before selecting the numerator.
The team chooses one narrow first contract: completed-order net value for an operational review. It explicitly excludes cancelled and fully refunded statuses in this fixture and subtracts the defined merchant discount from eligible gross value. It does not subtract fees, ingredients, labour or other costs, so it must not be labelled profit or contribution. This scope statement protects readers from drawing a larger conclusion than the calculation supports.
2. What belongs in a metric contract
A useful contract contains a stable identifier, version, plain-language title, decision, owner, eligible population, numerator, denominator if any, units, time basis, source fields, transformation rules, exception policy, publication cutoff and limitations. It also contains a small expected-answer fixture. These elements can fit into a short machine-readable file plus a readable explanation; a contract does not need to become a large bureaucracy.
Keep identity separate from display wording. The internal metric identifier can remain stable when a heading is clarified without changing its meaning. A meaning change should receive a new version or another explicitly governed identity. A reader should not have to infer compatibility by comparing two similar titles. The contract should state whether an earlier version can be compared directly, requires a bridge or must remain a separate series.
The contract is not authoritative merely because it is stored in JSON. Its business owner approves the intended decision and interpretation; the technical owner verifies implementation; a reviewer checks the fixture and change evidence. The organisation chooses the actual roles according to its size and risk. One person may hold several roles in a small business, but the questions those roles ask should remain distinct.
3. The twelve-order teaching population
The fixture defines 100 minor units as one fictional CU. Gross and discount amounts are non-negative integers. The net amount for an eligible completed row is gross minus discount. Cancelled and fully refunded rows remain in the raw population but do not enter the narrower metric. This is a laboratory convention, not a claim about every restaurant's real revenue treatment.
| Order | Status | Gross minor units | Discount minor units | Eligible net |
|---|---|---|---|---|
| M01 | completed | 10000 | 1000 | 9000 |
| M02 | completed | 12000 | 2000 | 10000 |
| M03 | completed | 8000 | 0 | 8000 |
| M04 | completed | 15000 | 3000 | 12000 |
| M05 | completed | 9000 | 1000 | 8000 |
| M06 | completed | 6000 | 0 | 6000 |
| M07 | completed | 11000 | 1000 | 10000 |
| M08 | completed | 7000 | 0 | 7000 |
| M09 | completed | 5000 | 0 | 5000 |
| M10 | completed | 5000 | 0 | 5000 |
| M11 | cancelled | 7000 | 0 | excluded |
| M12 | fully_refunded | 5000 | 0 | excluded |
The complete population has twelve orders and gross amount 100,000. The completed subset has ten orders and gross amount 88,000. Its discounts total 8,000, producing eligible net value 80,000. Every number can be checked by adding the rows. The excluded 12,000 and eligible discounts 8,000 explain the entire 20,000 difference.
4. Write the broad source-gross version
Version 1 is called source gross created-order value. It sums the gross field for every accepted row in the twelve-order fixture, regardless of the listed status. Its numerator is 100,000 minor units and its population count is twelve. Its purpose is to describe the source-gross population supplied to the report, not to represent completed trading activity.
That title is less familiar than “sales,” but it tells the reader what the number means. The source field's definition still needs verification for real use: it might include or exclude taxes, delivery charges, discounts or other components. Do not assume the word gross resolves those questions. The fixture defines its components explicitly so the exercise remains reproducible.
The contract states the accepted status values, identity rules and handling of corrections. A duplicate order row cannot become a second created order merely because the report sums every status. A missing gross amount cannot become zero without a documented basis. Population definition, data validity and amount interpretation are separate controls that must work together before the total supports a decision.
5. Write the completed-net version
Version 2 is called completed-order value after defined discounts. It accepts only rows with status completed and sums gross minus the fixture's defined discount field. Its numerator is 80,000 minor units and its eligible order count is ten. Its purpose is the fictional operations review described at the start.
The phrase “after defined discounts” matters because a real export can contain several funding and discount components. A merchant-funded discount, platform subsidy, voucher, loyalty credit and accounting adjustment are not automatically interchangeable. This fixture has one simple discount column. A production contract must explain which source components the calculation uses and what it intentionally leaves out.
Do not copy the version 2 amount into a profit tile. It does not include payment fees, food costs, staff costs, occupancy or other expenses. A metric can be narrower than gross order value without becoming a profitability measure. Put its decision scope beside the result so a manager can see what it supports without searching through a technical appendix.
6. The false growth calculation
Imagine the prior period's operational report used version 2 and displayed 80,000. The current report accidentally uses version 1 and displays 100,000 for an identical fixture population. A naive growth formula produces (100,000 minus 80,000) divided by 80,000, or 25%. The arithmetic is correct; the comparison is not. It combines a population and amount-definition change with a time comparison.
Recalculate both periods under version 2. Each produces 80,000, so compatible-definition growth is zero in this constructed scenario. Recalculate both under version 1 and each produces 100,000, again giving zero. The 25% was entirely an artefact of incompatible definitions, not evidence that restaurant activity improved.
The interface should block or clearly flag the cross-version growth rather than merely putting a small footnote underneath a large green percentage. A reader's primary action is to compare periods. The compatibility decision therefore belongs before that action. Show a definition bridge and offer a compatible restatement if the underlying data support one; otherwise explain that a valid growth comparison is unavailable.
7. Build the definition bridge
The bridge begins at version 1's 100,000. Remove cancelled order M11's 7,000 and fully refunded M12's 5,000 to reach completed gross value 88,000. Subtract the completed orders' 8,000 of discounts to reach version 2's 80,000. The bridge reconciles exactly: 100,000 minus 7,000 minus 5,000 minus 8,000 equals 80,000.
Present each adjustment as a definition difference, not an economic loss that occurred between reports. The population and source rows are unchanged in this exercise. A waterfall chart can be useful if its title says “definition bridge.” Calling it a performance bridge would encourage the wrong interpretation. The explanation should identify which rows support each step and whether the categories are mutually exclusive.
Do not force a bridge to balance by adding an “other” line with no evidence. If the calculated result leaves a residual, show it as unresolved and investigate missing fields, overlapping exclusions, rounding, corrections or population differences. A bridge is valuable precisely because it makes a definition change testable. Its purpose is undermined when it becomes a decorative chart that always reaches the desired endpoint.
8. Denominators are contracts too
Version 1's amount divided by all twelve orders gives approximately 8,333.33 minor units per created order. Version 2's amount divided by ten completed orders gives 8,000 per eligible completed order. These are different average-value measures. A percentage change between them is not a clean statement about customer spending because both the amount basis and denominator changed.
An average-value contract must specify whether the denominator is orders, tickets, guests, items, portions or some other unit. One order can contain several items and several portions. Combining a revenue numerator based on completed orders with a denominator based on all created orders can produce a valid custom ratio only if it is deliberately defined and labelled. It should not inherit a familiar name accidentally.
For the teaching tool, expose the numerator and denominator alongside the result. When there are zero eligible orders, display “not defined for this population” rather than inventing zero or dividing by one. A zero numerator with a positive denominator can legitimately produce zero; an empty population cannot support the same interpretation. This boundary case deserves an explicit expected answer.
9. Eligibility must be evaluated at a stated time
An order can be completed when an early report is published and fully refunded later. A contract must say whether the metric uses the latest known status, the status at a publication cutoff or another defined historical state. Without that choice, re-running an old report can change its eligible population even when the date filter stays the same.
Cedar Rooms' fixture is a frozen snapshot, so the status values are fixed for this laboratory. The production design extends it by retaining status evidence and publication cutoff. A report can then distinguish an archived known-at-the-time value from a latest-state reconstruction. Neither should silently replace the other in a comparison without a restatement policy.
When the later refund arrives, the reviewer asks which decisions and publications are affected. A customer-service analysis may need the latest outcome. An original staffing review may need the information available at the time. A formal financial process may require a separate treatment approved by its owner. The metric contract records its own scope without claiming authority over all downstream uses.
10. Source metadata makes fields interpretable
A file with columns called amount, status and date is not a complete data contract. It needs units, allowed values, null meaning, date basis and source provenance. The original string and interpreted value may need to be retained separately when parsing could alter meaning. Those distinctions help a reviewer explain whether a discrepancy came from source data or transformation.
The W3C tabular-data model provides a reference for tabular values and associated metadata. Cedar Rooms applies that general idea through a simple field workpaper rather than requiring a particular metadata technology. The workpaper describes each column and its role in the metric, including fields that are retained for evidence but excluded from the calculation.
For a real integration, obtain definitions from the source owner or authoritative provider documentation. If a discount's funding basis is unknown, do not rename it “merchant discount” because the desired formula needs that component. The correct result may be a restricted metric with a visible limitation until the definition is verified. Honest incompleteness is more useful than a precise but unsupported label.
11. Make units and rounding explicit
The fixture sums integer minor units, which makes its additions and bridge exact. An average can still produce a fraction, so the contract must distinguish the underlying result from display rounding. Version 1's average is 100,000 divided by twelve; displaying two decimal places does not make the underlying ratio an exact two-decimal quantity.
For monetary calculations requiring exact representation, a suitable exact numeric type or carefully defined integer-unit design can avoid avoidable floating-point interpretation problems. PostgreSQL's numeric-type documentation describes exact numeric storage and arithmetic. The choice does not decide when a business should round taxes, fees or allocations; those policies require their own verified basis.
Test the bridge before formatting. If a display rounds each step, a chart may show a small visual residual even when the underlying values reconcile. Conversely, rounded totals can appear equal while underlying values differ. Provide a drill-down to the defined calculation precision and state any accepted tolerance. Never use a display-formatting adjustment as an unexplained business correction.
12. Version the meaning, not every cosmetic edit
Clarifying punctuation or improving an explanation without changing eligibility, amounts, time basis or interpretation may not require a new metric meaning. Changing which statuses count, subtracting another component, altering the cutoff or changing the denominator usually does. The organisation should document its compatibility rules so analysts do not make ad hoc decisions each time a report is edited.
A useful change classification has three routes: editorial clarification, compatible implementation repair and definition change requiring a bridge or restatement. A repair can still change numbers if the old implementation violated the approved contract. The release note must explain that distinction. “Same version” is not a reason to conceal corrected historical outputs.
The version identifier should travel with exports and saved reports. A screenshot without a date basis or version can become detached from its explanation in a meeting. Put a concise definition label near the number and retain the full contract in the evidence pack. This is reader support, not internal release metadata that overwhelms the public learning page.
13. Write a change request that can be reviewed
The change request states the current decision problem, proposed definition, reason, affected users, source evidence, expected output difference and migration plan. Attach the twelve-row fixture and bridge. Reviewers should be able to answer whether the new metric better supports the intended decision and whether the implementation matches that definition.
Do not justify a definition change merely because the new number looks healthier. Removing refunded orders may make a ratio rise or fall depending on the construction. The decision should be based on a clear analytical purpose, with another metric retained when it answers a different useful question. A company can track created orders, completed orders and refund outcomes separately without forcing them into one flattering headline.
The request also identifies what remains outside scope. Version 2 does not measure cash collected, contribution or statutory revenue. Stating these boundaries prevents an approved operational improvement from being reused as authority for another process. Downstream owners can then assess compatibility instead of discovering after release that a familiar column now means something different.
14. Test the population before the formula
Begin by checking row identities and status eligibility. The fixture contains twelve unique orders, ten eligible completed records and two excluded records with distinct reasons. If the implementation selects eleven orders, fix that population issue before debating rounding in the amount calculation. A correct formula on the wrong population is still the wrong metric.
Create a membership report listing each order's inclusion flag and exclusion reason. It should explain M11 as cancelled and M12 as fully refunded under this particular contract. A generic “filtered out” label is insufficient when someone needs to reproduce the decision. If statuses overlap or change over time, the precedence rule must be explicit rather than depending on the order of conditions in a script.
Then test amounts for the accepted rows. Discount cannot exceed gross under the baseline fixture's validation contract; a negative or missing field creates an exception. A real source may legitimately represent adjustments differently, so those cases need a documented source-specific interpretation. Do not convert unfamiliar values to the fixture's assumptions without review.
15. Keep the legacy series intelligible
When version 2 is released, readers may still need version 1 for source reconciliation. Preserve it under its clearer title rather than deleting useful evidence. The metric catalogue can state which decision each version supports and which version is preferred for the operations comparison. Deprecation should mean a managed transition, not an unexplained disappearance.
For historical charts, choose one of three honest treatments: recalculate both periods under a common definition when data permit, show separate incompatible series, or mark a discontinuity. Do not draw a continuous trend line across a definition break and hope a footnote will correct the impression. The chart's structure should reflect the comparison the evidence can support.
If the underlying historical fields are unavailable, say so. Reconstructing a discount from a group average and presenting the result as observed order data would create false evidence. An estimate can be useful under a separately documented model, but it should not be mixed into an observed metric series without a visible distinction and uncertainty explanation.
16. Review downstream dependencies
A metric may feed a dashboard, weekly review pack, bonus worksheet, vendor discussion and forecasting model. Before changing its meaning, inventory those outputs and their owners. The same amount can be harmless in an exploratory chart and consequential in an incentive calculation. The release process should prioritise review according to the decisions affected.
Create a small dependency map from source fields through transformations to published metrics and outputs. The W3C provenance overview offers a general reference for describing lineage; the laboratory uses a simple directed map. The goal is to identify who needs to assess a change, not to draw the most elaborate graph possible.
For each dependent output, record the required action: no change, label clarification, recalculation, user training or separate approval. Do not mark the migration complete merely because the primary dashboard renders. A stale spreadsheet that continues interpreting the old column can keep producing incompatible results long after the central report has been corrected.
17. Design the version comparison tool
The tool lets a reader select version 1 or version 2 for each of two identical fixture periods. It shows the numerator, eligible count, per-order ratio and compatibility status. If both sides use the same version, it calculates the period comparison. If they differ, it presents the definition bridge and flags the growth figure as an invalid performance comparison.
Choose the M04 discount scenario, the M01 correction scenario, the M11 completed scenario or the all-refunded scenario from the dropdown. Each applies only its named change to the baseline; scenarios are not cumulative. Compare the resulting version totals and eligible counts. This demonstrates causality within the stated arithmetic model without pretending to establish a real restaurant's business causality. The sample remains synthetic, and the tool should provide a reset to its published expected-answer fixture.
Start with v2 selected for both periods and the original twelve orders: the eligible count is 10 and the net numerator is 80,000 minor units. Change M04’s discount to 3,500 to see the numerator fall to 79,500 while the count stays 10; correcting M11 to completed instead gives 87,000 across 11 eligible orders. These modes each change both identical fixture periods, so they do not simulate a real period-on-period improvement. Choose the fully refunded mode to see zero eligible v2 orders and an undefined average. Select v1 for one period and v2 for the other to see performance growth withheld. Save the current-scenario JSON with the chosen versions and assumptions. When adapting these records outside the selector, keep a missing discount distinct from a confirmed zero; this fixed scenario control does not accept an arbitrary missing-value row.
18. Boundary case: no eligible orders
Set all twelve rows to excluded statuses under version 2. The sum over eligible completed-order values is zero under the laboratory's defined empty-sum convention, while the eligible count is zero. The per-order average is not defined because its denominator is zero. Show both results and explain why they are not contradictory.
A dashboard that displays zero average value can suggest customers placed zero-value completed orders. That is a different observation from having no eligible completed orders. The reader needs to know which happened before deciding whether there is a pricing problem, a closure, a data gap or simply an empty selected period.
The contract should also distinguish an observed empty population from missing source data. If the source file did not arrive, zero is not a defensible substitute for the unknown population. The output can be unavailable or provisional with a completeness explanation. A formula cannot establish that an absent file means no business occurred.
19. Boundary case: corrections and duplicate rows
For an offline identity-contract exercise, copy the downloaded CSV and add a second copy of M01 to that file; the browser dropdown does not import or edit raw rows. The metric should not increase merely because the same business order was delivered twice. Apply the identity and revision contract before metric eligibility. The teaching dataset's unique order identifiers make this visible; a real source may need a composite namespace and version semantics.
In the browser, choose Correct M01 discount to 1,500 minor units. In the offline workpaper, record the correction from 1,000 to 1,500 with its fictional evidence reference. Version 2 decreases by 500 to 79,500, while version 1 remains 100,000 because its definition does not subtract the discount. This is a real difference between the two metric definitions within the sample. The tool should explain it rather than implying both versions must always move together.
If two records claim the same version of M01 with different discount amounts, quarantine the conflict until the evidence resolves it. Choosing whichever value makes a report match another total defeats the purpose of the contract. The review must establish the underlying accepted fact before the metric can calculate a meaningful result.
20. Boundary case: adding a new status
A source introduces a status called “partially_refunded.” The baseline contract lists completed, cancelled and fully_refunded. Do not silently treat the new status as completed because it is not on an exclusion list. An explicit allow-list makes the unresolved mapping visible and prevents new source states from inheriting an unreviewed meaning.
The metric owner and source specialist determine what the new status represents, which amount fields remain relevant and whether a partial-refund component must be applied. They create a fixture with an expected result and decide whether the change is a contract extension or a new version. The exact treatment depends on the intended decision and verified source semantics.
Meanwhile, the output reports the held records and affected amount scope. It can still release unaffected metrics when the workflow permits, but it must not claim the selected population is complete if unresolved statuses could materially change it. This is a decision-impact explanation, not a universal threshold rule.
21. Establish a review cadence tied to evidence
A metric review should ask whether the decision remains relevant, source definitions changed, exceptions accumulated or users began applying the number outside its scope. A calendar reminder can prompt that review, but a recent review date alone is not evidence that the metric is accurate. Keep the fixture results and unresolved limitations with the approval record.
For Cedar Rooms, the operations lead reviews the metric after a source schema change, a new status, a change in discount funding or an identified interpretation error. The technical owner runs compatibility fixtures before publishing a new implementation. The reviewer checks that the bridge and reader labels still explain the result.
Track open actions by their verification evidence. “Clarify discount definition” closes when the relevant authoritative definition is attached and the contract updated, not when someone sends an email asking about it. “Fix average calculation” closes when the zero-denominator and normal fixtures pass and the output uses the correct label. This keeps governance practical and outcome-focused.
22. Avoid an arbitrary confidence score
It can be tempting to combine freshness, completeness, exception count and reviewer approval into one percentage called metric confidence. Unless that score has a validated interpretation for the decision, it can create more certainty than the evidence supports. A missing critical source should not disappear behind several healthy low-impact checks.
Show the important dimensions directly: source coverage, publication cutoff, contract version, unresolved population exceptions and calculation test status. A reader can then judge whether the metric is sufficient for a staffing review or requires further investigation. A green test result means the implementation passed a defined fixture, not that every source fact is true.
For an executive pack, translate those dimensions into a short decision note. State which conclusion is supported, what evidence could change it and who owns the next action. This is more useful than a decorative score because it connects uncertainty to an actual management decision. The framework should help people ask better questions, not discourage scrutiny with an opaque badge.
23. Prepare a release pack another analyst can run
The pack contains the contract versions, raw fixture, accepted-population workpaper, expected answers, implementation version, source references and change bridge. Include clear instructions for reproducing both the valid zero-growth comparison and the invalid cross-version 25% example. A second analyst should be able to explain the difference without asking the original author to reconstruct hidden assumptions.
Keep test data synthetic and free of unnecessary personal information. The purpose is to challenge eligibility, arithmetic and interpretation, not to mimic a real customer's identity. If later examples use actual organisational records, they need their own permission, minimisation and disclosure process. A fictional teaching label must never be used to conceal real personal data.
Ask the second analyst to record every missing instruction. Those questions identify defects in the learning material and the operational process. A release pack is successful when someone else can reproduce and challenge it, not merely when the author can press a button and obtain the expected total on their own machine.
24. Run a decision-based acceptance meeting
Show the operations lead the two identical periods, one displayed at 80,000 and the other at 100,000. Ask what they would conclude. If the page encourages a claim of 25% business growth before revealing the definition mismatch, redesign it. Compatibility is central to the decision and should be visible before the misleading comparison can be acted upon.
Then ask the lead to explain the 20,000 bridge in ordinary language. They should identify the excluded statuses and the discount basis without calling the bridge an economic loss. Ask the analyst to locate M11 and M12 in the raw fixture. Ask the reviewer to calculate version 2 independently from the ten eligible rows.
Finally, introduce a missing discount and a new status. The participants should identify an unresolved contract question rather than treating the values as zero or completed by convenience. Record the approved exception behaviour and owner. This meeting tests whether the framework is usable by a team, which is a different quality criterion from whether its documentation looks formal.
25. Advanced extension: compare business change and definition change separately
Suppose a later current period genuinely produces version 2 value of 88,000 while the prior compatible period remains 80,000. Compatible growth is 10%. If the current broad gross value happens to be 110,000, comparing that with the prior 80,000 would produce 37.5%, mixing business change with definition differences again. The bridge should separate those effects rather than combining them into one headline.
Build two steps: restate or align the prior definition, then compare periods on that common basis. Retain the direct business change of 8,000 under version 2 and show the definition bridge separately. If the data do not support a common basis, do not manufacture the decomposition. The correct output is a limitation and an evidence request.
This extension is useful in acquisitions, new platform integrations and changes to channel classification. It does not imply that every group can create a perfectly comparable historical series. The quality of the comparison depends on source coverage and consistent definitions. A transparent break is better than a continuous chart built from unsupported estimates.
26. Advanced extension: reconcile competing stakeholder needs
Operations may prefer completed-order activity, finance may need a source reconciliation population, and customer service may need the full lifecycle including cancellations and refunds. A mature metric framework does not force one definition to satisfy all three decisions. It gives each a clear identity and explains how the populations relate.
Create a metric family with shared source evidence and distinct purposes. The family can include created gross value, completed gross value, completed value after defined discounts, cancellation count and refund outcomes. Shared lineage helps reconcile them, while separate labels prevent one figure from being mistaken for another. Avoid duplicating raw data unnecessarily when a governed view can express the distinction.
When stakeholders disagree, return to the decision and consequence. A number appropriate for capacity planning may be inappropriate for a supplier-payment discussion. The owner approves the intended use; downstream users must not expand that authority implicitly. Documenting these boundaries keeps the framework from becoming a contest over which department's preferred label wins.
27. Exercises and expected answers
First, reproduce the baseline: twelve created orders, ten completed orders, 100,000 broad gross value, 88,000 completed gross value, 8,000 eligible discounts and 80,000 completed net value. The definition bridge must total 20,000 with no unexplained residual. Use the raw rows to support each component rather than copying the published totals.
Second, increase M04's discount from 3,000 to 3,500. Version 2 becomes 79,500 and version 1 remains 100,000. Third, change M11 from cancelled to completed while keeping its zero discount. Version 2 becomes 87,000 and the eligible count becomes eleven. Its per-order amount is 87,000 divided by eleven, which should be retained at calculation precision and formatted according to the chosen display policy.
Finally, choose version 2 for both identical periods and confirm zero growth. Choose version 1 for current and version 2 for prior, calculate the naive 25% for demonstration, and verify that the tool labels the performance comparison incompatible. A useful exercise teaches why an attractive answer is wrong, not only how to reproduce a formula.
28. A worked migration notice
The fictional release notice can be short and specific: “The operations review now uses completed-order value after the discount field defined in contract version 2. The previous source-gross series remains available for source-population review. Historical comparisons in the operations chart have been recalculated under version 2 where the necessary fields exist. The twelve-order teaching fixture changes from 100,000 to 80,000 because 12,000 of excluded-status gross value and 8,000 of eligible discounts are outside the new numerator.”
The notice also names what did not become part of the metric. It still does not subtract operating costs or establish cash receipts. This prevents a reader from treating a more carefully defined operational number as a complete financial result. The field workpaper identifies the source columns and their verified meanings rather than relying on the title alone.
Attach a reconciliation table with the old result, new result, bridge and population counts. If the historical population cannot be reconstructed, mark that period unavailable for a compatible comparison. Do not fill the gap with an invented series merely to preserve the visual continuity of the chart. The migration notice should help readers interpret the break honestly.
Finally, provide a practical question for each recipient: “Does your worksheet, target or recurring decision depend on the previous amount or order population?” Record the responses and update the dependency register. A broadcast message is not evidence that every downstream use has been assessed. The migration is complete when the affected decisions have a documented treatment and the corresponding outputs have been checked. That is a stronger institutional control than simply changing a formula in one dashboard and adding a recent date to its footer.
Sources and method boundaries
The external references support general technical ideas: W3C tabular data and metadata, PostgreSQL exact numeric types, and W3C provenance concepts. The contracts, restaurant records, governance process and comparison laboratory are original teaching designs. They do not constitute a provider's official metric definition, formal accounting advice or certification.
Research sources and scope
- www.w3.org — primary reference ↗The PROV family supplies a framework for representing provenance and interchange; the restaurant implementation here is an original teaching design.
- www.w3.org — primary reference ↗Tabular data models distinguish original strings, semantic values, source rows and metadata; CSV variants need explicit interpretation.
- www.postgresql.org — primary reference ↗Exact numeric arithmetic is appropriate when exact monetary representation is required; display rounding and business rounding policy remain separate decisions.
Build on the foundations
For the next step, use the editable dataset contract builder to declare field types, required values and an outlet/order key, then inspect row failures and duplicate-identity witnesses. Those input checks support a metric contract; they do not decide what revenue means or approve a definition change. The introductory resources below provide the accounting and operating foundations.
