PRACTITIONERCHAPTER 07

Metric definitions and a single source of truth

When two teams report the same month with different figures, neither is lying: write the definition down, give it one owner and one implementation, and retire the other number without breaking the people who read it

45 MINDATA AND MLUPDATED 2026-11-21
PREDICT

Finance reports September's GMV at ₦15.4bn. Growth's dashboard, also labelled 'revenue', says ₦16.2bn. Both come from the same orders table and both teams have reviewed their SQL. What do you do first?

Two numbers for one name is the most common failure in a company’s data, and it is rarely a bug. It is what happens when a metric is a query that somebody wrote, not a definition that somebody owns. This chapter is the data owner’s side of it: when finance and growth report the same month differently, who is the source of truth, where does the definition live, and how do you retire the other number without breaking the people who read it.

Product analytics covers instrumentation and how a PM picks an activation definition, which is about whether the events are true. This chapter starts after they are: the data is correct, the SQL is correct, and the figures still disagree. Metrics and experiments covers the metrics tree and the readout, both of which fail if the metric underneath means different things to different readers.

A metric is a definition, not a query

A query computes a number once. A definition says what the number means, so that anyone can compute it and get the same answer. Think of a definition as having nine parts.

Part What it settles Example (gross merchandise value)
Name What the thing is called, and only that Gross merchandise value, or GMV
Question The decision or report it serves The size of the marketplace, read monthly by the board
Unit and grain What is counted, in what unit, at what level Naira, summed over orders
Rules What counts and what does not Goods in orders not cancelled before dispatch; excludes delivery fees and staff orders
Boundary Basis date and time zone Order placed, in Lagos time
Owner A person who answers for it The financial controller
Source The one model that computes it One governed table in the warehouse
Version When it last changed, and why v2, from July
Limits What it cannot tell you Says nothing about margin

Most disputes live in the rules and boundary rows, which people never write down because each team assumes its own choice is the only sensible one. They are also where money hides: whether delivery fees count is a rule about a number the board reads.

A definition is a choice, not a fact about the world. “Orders cancelled before dispatch” can reasonably be in or out of GMV. What matters is that the choice is made once, written down, and signed by someone who will be asked about it. Kimball’s conformed dimensions, in the reading, apply the same discipline to a warehouse’s descriptive columns: define the thing once and let every table use it.

Why two correct numbers appear

If an event fires twice or a load drops rows, that is a data-quality problem, fixed in the instrumentation or the pipeline, as the product analytics chapter and the track’s chapter on data quality and trust explain. A definition problem is different: the data is right, and the two queries answer slightly different questions. The usual causes:

Cause What it looks like Example
Basis date Placed, paid, dispatched, delivered or settled An order placed on the 30th and delivered on the 3rd
Inclusion Which statuses, products and accounts count Cancelled, refunded, staff and test orders
Boundary Time zone and cut-off UTC midnight against Lagos midnight
Components Which charges are in the amount Goods only, or goods plus delivery fee
Grain Order, line item, parcel or buyer A basket split into two parcels counted twice
Restatement Whether past periods can move A refund processed in October reducing September
Copied logic The same rule written twice and edited once A filter added to one dashboard and not the other

Ojaline’s September gap shows how this looks. Finance counts goods in orders placed in the Lagos calendar month, excluding orders cancelled before dispatch, delivery fees and staff and test orders. Growth’s dashboard sums every order placed in the UTC calendar month, with delivery fees. Put a naira amount on each difference, all illustrative:

Step ₦bn
Growth’s September “revenue” 16.20
Less orders cancelled before dispatch 0.52
Less delivery fees 0.16
Less staff and test orders 0.08
Less the cut-off (UTC against Lagos time) 0.04
Finance’s September GMV 15.40

The lines sum to 0.80, which is the gap, and nothing is left unexplained. That last check is what makes a bridge useful. Lagos is an hour ahead of UTC all year, so orders placed between 23:00 and midnight UTC fall in the next Lagos day, and the effect nets out small at month-end. If the lines had added up to 0.60, you would still owe an explanation for ₦0.20bn, and the likely cause would be a real bug as well as a definition.

The gap is about 5% of finance’s figure. That sounds small until you set it beside the signal: finance’s quarterly GMV fell from ₦50.0bn in Q2 to ₦47.0bn in Q3, a 6.0% drop, and the forecast decision in asking the right question turned on whether to cut by between 4 and 6%. A definition gap of 5% is nearly as large as the movement the company is trying to read. If the cancellation rate changed between quarters, growth’s figure and finance’s would move by different amounts, and nobody could say which fall was real.

Choosing the source of truth

“Source of truth” is a loose phrase, so tie it to something you can test. The source of truth for a metric is one definition with a named owner, implemented once, which every other report reads. It is not a department, and it is not whichever query is older. Five questions pick the winner.

  1. Who answers for it outside the data team? Finance signs the accounts and answers to the board, lenders and the tax authority. If a number can end up in front of someone who will ask “who stands behind this”, it needs an owner of that standing.
  2. Does it reconcile to a system of record? GMV should tie to orders captured in the payments system and the ledger within a stated tolerance. A figure that reconciles can be defended; one that does not is an opinion. The reconciliation lesson and the payments reconciliation chapter show the mechanics.
  3. Can a closed period move silently? A definition with a freeze date and a restatement rule can be trusted a quarter later.
  4. Who is hurt if it is wrong? A flattering tile on a growth dashboard costs a bad meeting. A wrong figure in the board pack costs more.
  5. Is the difference fixable? Growth’s advantage is speed, and speed can be rebuilt: run finance’s rules daily from the same table and mark the current month provisional until the close. Meaning cannot be rebuilt that way, which is why meaning decides.

Run Ojaline’s case through these. Finance’s definition has an owner (Viggo, the financial controller, who will sign it), reconciles to the ledger, freezes at the close, and is the figure the board has already read. Growth’s is faster and handy for experiments. It also counts orders that were cancelled and fees that are not goods, and the board never agreed that it should. Finance’s definition wins, and the quick fix for the speed difference is to compute it daily.

Two cautions. The winner is not the more senior team: if growth’s definition reconciled and finance’s had a rounding bug, growth would win. And not every dispute has a winner. Where the numbers answer different questions, each can stay under its own name. The test here is the shared name: the word reaches the board, so it can mean one thing only. Growth’s figure may survive under another name.

Retiring the other number

Choosing is the easy half. Retiring the loser is where data teams lose trust, because the loser has readers. At Ojaline the growth query feeds five things: the weekly growth review, same-day experiment readouts, the forecast spreadsheet, a city managers’ dashboard and a Monday chat message. Switch it off on Friday and five people lose their numbers on Monday. Seven steps avoid that. The timings are a rule of thumb for a company the size of Ojaline, not a standard.

Step What happens Who When
1. Publish the bridge The table above, with every line in naira, sent to both teams Olabisi, analytics engineer Days 1 to 3
2. Sign the definition Viggo signs the spec; the growth lead signs as its largest reader Finance, growth Week 1
3. Build it once One daily model, tested, marked provisional until the close Olabisi Weeks 1 to 3
4. Run in parallel Old and new side by side through one monthly close; the difference must equal the bridge, and the new figure must tie to the ledger Olabisi, Viggo The October close
5. Move the readers List every consumer of the old query and move each one, starting with the forecast sheet Olabisi, each owner Weeks 3 to 5
6. Relabel, then remove Rename the old tile, add a banner with a removal date, and delete it after two cycles with no reads Data team Week 5 onwards
7. Stop it returning Company-level metrics are computed only in the governed model; a dashboard that recomputes one fails review Head of data Permanent

Two details are worth stating. The old figure is relabelled before it is removed. Growth’s number becomes “orders placed value (legacy)” the day the new tile goes live, so nobody can mistake it for the board’s figure while they migrate. And the name goes first. The word “revenue” also hides a second collision: finance keeps a separate net revenue, which is what Ojaline earns from commissions and fees, and the word “revenue” on both tiles has been standing in for GMV. The retirement therefore ends with a short rule: GMV is called GMV, net revenue is called net revenue, and a dashboard may not use the bare word.

What survives is the part of growth’s number that answers a real question. Experiments need same-day, buyer-level orders by placement time, which finance’s close cannot supply. That figure stays as orders placed value, defined in its own spec, owned by the growth lead, and never compared with GMV on one slide without the bridge. Retiring a number does not mean denying the need behind it.

Airbnb’s engineering team describes deprecation as one stage in a metric’s life on its internal platform, alongside creation, computation and consumption (see the reading). Retirement is designed in from the start, with an owner and a date.

Where the definition lives

A definition on a wiki page decays. A definition in code can be run, tested and versioned. Think of four layers.

  1. Events and source tables. What the product and the systems record. The tracking plan from product analytics governs the events, and the system of record owns the orders.
  2. Modelled tables. One governed model per business entity, such as the order, with its status history, its timestamps and its amounts. The design questions here (keys, grain, when to denormalise) are the ones in modelling and normalisation.
  3. Metric definitions. The formula over the model: sum of goods value where status is not cancelled before dispatch, by Lagos order date. In a warehouse this is a view or a model. Some teams use a metrics layer or semantic layer, such as dbt’s MetricFlow, in the reading, which lets a metric be declared once and queried by name from any tool.
  4. Consumers. Dashboards, the board pack, the forecast sheet, the experiment tool. They read the metric. They do not recompute it.

The rule that makes this work is that a company-level metric is computed in layer 3 and nowhere else. A BI tool that applies its own filter on top has created a second definition, however small. Hold money as integer kobo in the model and convert at the last step, as the minor units lesson explains, so that a rounding choice is not another place the numbers can diverge.

Tests belong in the model, because the definition is only as good as its checks. For GMV: the monthly figures sum to the quarter; today’s figure never moves a closed month; the total ties to captured orders in the payments data within an agreed tolerance (0.1% is a rule of thumb, set it with finance); and no day’s figure falls below 70% of the same weekday’s recent median without an alert. The last is the volume check from the product analytics chapter, applied to a modelled figure.

Where practitioners disagree

Finance-owned or data-owned definitions. One view says any figure that reaches the board belongs to finance, and data only implements it. Another says data should own definitions for product and customer metrics, because finance has no view of events and funnels. A workable split is by audience: finance owns anything that appears in accounts or the board pack, and the business owner of the question (growth, operations) owns the rest, with data owning the implementation and the register.

A metrics layer or plain warehouse models. A metrics layer promises one place for definitions and consistent answers across tools, at the cost of another system to run and learn. Plain, well-tested models are cheaper and enough for a team with a handful of metrics. Teams usually move to a layer when the metrics and consumers pass what one person can hold in their head.

Restating history. When a definition changes, you can recompute the past on the new rules (consistent trend, past board packs no longer match) or keep the old history and start a new version at a date (past packs stay true, the trend breaks). Neither is right everywhere. Say which you chose in the spec. If the change is large, give the metric a new name, as the product analytics chapter advises: change the meaning, change the name.

Where it goes wrong

Choosing the winner by seniority. The figure the chief executive quoted becomes the truth. It works until the definition is wrong and nobody can say why.

A spec nobody signs. A document written by the data team alone is a proposal. Without the owner’s signature there is no one to ask, and the next dispute starts again.

The big-bang switch-off. Removing the old dashboard on a Friday is clear and breaks readers who then rebuild it privately. The parallel run exists so that you can show the new number is right before anyone loses the old one.

Silent change. Someone fixes a filter in the model and last month’s figure moves. Version the definition, log the change and say which closed periods it touches.

Governance as a gate. If every new metric needs a committee, teams build their own spreadsheets. Keep the tight process for company-level metrics and leave exploration open.

A source of truth that is stale. The governed table stops updating and people go back to their own queries. Monitor its freshness as you would a production service.

Day to day

The work is a register, a review and a habit of asking where a number comes from.

On a new request, you check the register first. If the metric exists, you point to it. If not, you write the spec in the template below within a day or two and get the owner to sign it. Ten minutes with the owner on the rules row saves a week of argument.

Every day, the model’s tests run and failures go to a named person. You glance at freshness and at the reconciliation check before the first review of the day, not after someone has quoted a number.

Every week, thirty minutes, a metrics review with a finance partner and the owners of the two or three metrics in flux: requests, changes, disputes and retirements. Most weeks it takes ten minutes. It makes disputes arrive here, not in the leadership meeting.

Every month, at the close, you reconcile the governed figures with finance’s: GMV against captured orders, orders against the orders table. You write down any difference above tolerance and what explained it. The month a new definition goes live, you run old and new side by side and publish the bridge.

Every quarter, half a day, you audit the register. Which metrics have an owner who has left? Which tiles have had no reads for 60 days (a rule of thumb, not a standard)? Which definitions have drifted from their spec? Retire what nobody reads, and name an owner for what has none.

Whenever a figure surprises someone, you answer with the definition and the bridge, not a defence of the query.

BY ORG SIZE
STARTUPunder 30 people

There is no data team, and the definitions live in the heads of two or three people. The cost of disagreement is low, so the process should be too: a single shared document with five or six metrics, each with its rules, its owner and the query next to it. Write down the rules row for the metrics that reach investors or lenders, and agree one name for each. Do not build a metrics layer. A tidy view in the database and a list of definitions that the founder has read is enough, and it is worth more than any tool.

SCALE-UP30 to 300

This is where two numbers for one name appear, because three teams have built three dashboards. Appoint an owner for every metric that goes into a review, hold the register in code next to the models, and make finance the signatory for anything in the board pack. Expect your first retirement, and do it properly: bridge, parallel run, migration, a removal date. Most of the credibility the data team has with finance is earned or lost in this one project. A metrics layer begins to pay for itself.

ENTERPRISE300 and up

Definitions already exist, usually several, owned by different functions and sometimes enshrined in policy. Your work is mostly political: finding who has authority over a name, getting a governance forum to rule, and running migrations that touch dozens of reports. A metrics layer and a data catalogue are likely in place, and the problem is stewardship: owners who move on, definitions that fork between business units, and a review board that becomes a bottleneck. Keep the board’s attention on company-level metrics and let the rest go.

ARTEFACT Write the metric definition spec ~60 MIN
YOU PRODUCEA signed metric definition with a bridge and a retirement plan

Template

# Metric definition: <name>
Owner (a person) · Signed by · Version · Date · Status: <draft | signed | deprecated>

## The question it answers
<the decision or report that uses it, and who reads it>

## Definition in words
<one or two sentences a finance colleague could repeat>

## Rules
| Rule | Choice | Why |
|---|---|---|
| Unit counted | | |
| Basis date and time zone | | |
| Included | | |
| Excluded | | |
| Money | <currency, minor unit, tax, fees> | |
| Late data and restatement | <provisional until..., frozen after...> | |

## Source
<the one model that computes it; the system of record it reconciles to>

## Checks
| Check | Tolerance | Alert to |
|---|---|---|

## Not this metric
<neighbouring metrics, each with its own name and owner>

## Bridge to other figures in use
| Figure | Owner | Difference (amount) | Cause |
|---|---|---|---|

## Retiring the old number
<consumers, migration date, legacy label, removal date>
WORKED EXAMPLE

Ojaline, the Tuesday after the September close. Olabisi, the analytics engineer, wrote this with Viggo, the financial controller. All figures are illustrative apart from the Q2 and Q3 GMV used elsewhere in this track.

Metric definition: gross merchandise value (GMV). Owner: Viggo. Signed by: Viggo, and the growth lead as largest reader. Version 1, status signed.

Question. How large is the marketplace, month on month, for the board and the forecast.

In words. The value of goods in orders placed in the Lagos calendar month, not cancelled before dispatch.

Rules. Unit: naira, held as integer kobo. Basis: order placed, Lagos time. Excluded: delivery fees, staff and test orders, orders cancelled before dispatch. Provisional until the close on the 14th, then frozen; later refunds do not restate it.

Source. One daily model over the orders table, reconciled to captured orders in the payments data within 0.1%. Checks: quarter equals the sum of its months, alert to Olabisi; a day below 70% of its weekday median, alert to Olabisi.

Not this metric. Net revenue (Viggo, from the ledger); orders placed value (the growth lead, same-day, every order placed in UTC, for experiments).

Bridge. Growth’s September “revenue” ₦16.20bn less cancelled ₦0.52bn, delivery fees ₦0.16bn, staff and test orders ₦0.08bn and the cut-off ₦0.04bn gives ₦15.40bn.

Retiring. Five consumers: weekly review, experiment readouts, forecast sheet, city dashboard, Monday message. Run in parallel through October’s close. Relabel as “orders placed value (legacy)” at go-live and remove after two cycles with no reads.

Now you

It is October at Ojaline. Three teams report September “orders”. Finance’s GMV model counts 1.71m, which is where Q3’s 5.2m comes from (1.76m, 1.73m and 1.71m). Growth’s dashboard shows 1.785m: it includes 0.06m orders cancelled before dispatch, 0.01m staff and test orders and a net 0.005m from the UTC cut-off. The operations pack shows 1.62m: orders delivered in September, which drops 0.13m placed in September but delivered in October and adds 0.04m placed in August and delivered in September. The chief executive wants one number by Friday. The complication: operations pays riders per delivered order from its figure, so it cannot change silently. You are Olabisi. Write the spec for “orders”, with the bridge and a retirement plan, saying which figure is the source of truth and which survive under another name.

Self-check

DECIDE

Ojaline, the Tuesday after the September close. The board pack carried ₦15.4bn of GMV from finance and the weekly growth review showed ₦16.2bn, both tiles labelled 'revenue', and a board member has noticed. The head of data asks you, Olabisi, an analytics engineer, to settle it. Viggo, the financial controller, will sign a definition. Growth reads its dashboard daily to read experiments, and four other consumers depend on the same query. What do you propose?

READING
  1. BOOK
    The Data Warehouse Toolkit: The Definitive Guide to Dimensional Modeling, 3rd edition Ralph Kimball and Margy Ross, 2013

    The classic argument for defining shared business entities once and reusing them everywhere. Read it for the discipline behind a governed model, not for its star-schema detail. Read: The material on the enterprise data warehouse bus architecture and on conformed dimensions, in the early chapters and facts.

  2. DOC
    Conformed dimension Kimball Group

    A short definition of what makes a dimension conformed, with the role of data governance representatives in agreeing it. Useful when you need to explain to a business owner why a definition is signed, not inherited.

  3. DOC
    About MetricFlow dbt Labs

    The documentation for declaring metrics once in a dbt project and querying them by name. Read it to see what a metrics layer asks you to write down, whether or not you adopt one.

  4. POST
    How Airbnb Achieved Metric Consistency at Scale Airbnb Engineering

    A public account of a metric platform that covers a metric's life from creation to deprecation. Read it for the idea that retirement is designed in from the start.

  5. POST
    Metric Infrastructure with Minerva @ Airbnb Airbnb Engineering

    The second part of the series, on the compute infrastructure and how consistency is enforced across datasets and teams. Read it for what keeping one definition consistent costs at scale.

All companies and people in these examples are fictional. Any resemblance to a real business or person is unintended.

RECALL CARDS Tap to flip. They join your review deck when you mark the lesson complete.
NEXT: Taking a model from notebook to production →