Home › How we work › Data essentials › Model

Topic 10 · Layer 4 of 6

Model

Clean data arranged the way the business thinks: sales, customers, products, days.

SourcesLandingCleanModelMeaningPeople use itwe don't own itwe build itthey use it

Where this layer sits.

In plain words

What happens here

Think of a city's water. The pipes laid to each neighbourhood. Same clean water, but shaped for the people it serves.

Here the data becomes tables that answer business questions: a table of sales, and tables describing the date, the product, the store and the customer. Calculations such as net revenue are done once, here, and every report reuses them.

Salesone row per order lineDateProductStoreCustomerCan answersales by day, product, store, personIf the row were 'one per day'you could not ask about one customer

The grain, one row per what, decides which questions are possible. Ask it first.

Technical names you may hear for this layer: gold.

What matters most

Three things

1The grain

One row per what? Per order line, per order, per day? This single choice decides which questions can be answered without a rebuild.

2Shared definitions

What exactly is a customer, an active user, revenue? Net or gross, with or without returns? Each needs one answer.

3Reconciliation

The totals must match a number the business already trusts, such as the finance report, within a tolerance everyone agreed.

Where it goes wrong

How this layer fails

What goes wrongWhat it looks likeEarly warning signWhat it costs
The grain is wrong for the questionA report needs detail the table does not have.Nobody asked 'one row per what?' in a requirements meeting.A rebuild of the model and every report on top.
Two definitions of one wordSales and finance each show 'revenue', and they differ.Two people give different answers to 'what is revenue?'Meetings spent arguing about whose number is right.
The totals do not tie outThe new report differs from the finance report and nobody can say why.Reconciliation was planned for the last week.The business refuses to switch, and the project stalls.

Causes from the failure list

Dependencies

What and who you depend on

  • Business owners of each metric.
  • Finance, for the figures to reconcile against.
  • A stable Clean layer.
  • The BA's requirements, written as questions the data must answer.

In the room

Four questions to ask

  1. One row per what?
  2. Who owns the definition of each number?
  3. Which existing report must this match, and who signs off the match?
  4. Which questions will you ask next year that you don't ask today?
Done means: Each metric has a name, a formula and an owner. Totals reconcile with a known report within the agreed tolerance. The sign-off is recorded.

The reusable backlog

Backlog for this layer

20 items, at the level a BA, Tech Anchor or PM can say done about. Copy the ones that apply; the full list, with filters and a download, is the corpus backlog.

IDItemOwnerDone when (acceptance criteria)Prevents causes
MDL-01Business questions turned into grain statementsBA
  • Each question has 'one row per what' written
  • Business owner confirms
12 17
MDL-02Model design reviewed with a business ownerTech Anchor + BA
  • The design can answer all the key questions
  • Questions it cannot answer are listed
11 17
MDL-03Metric definitions drafted: name, formula, ownerBA
  • Each metric has a name, a plain-words formula and an owner
  • Edge cases (returns, cancellations) included
8 11
MDL-04Reconciliation plan with financeBA
  • The report to match and the tolerance are named
  • Finance agrees to sign off
15
MDL-05Thin slice built: one source to one numberTech Anchor
  • One source goes through every layer to one number
  • Runs from the pipeline, not by hand
19 21 22
MDL-06Thin slice reconciled and signedBA
  • The number matches the trusted report within tolerance
  • Finance signs it
15 16
MDL-07Date, currency, time zone and calendar rulesBA
  • Which calendar, which time zone and which currency are stated
  • Edge cases such as month-end agreed
3 11
MDL-08Owners of dimensions and hierarchiesBA
  • Product, region and organisation hierarchies each have an owner
  • Change process known
8 11
MDL-09Model change processTech Anchor
  • New column or changed definition goes through a named route
  • Affected reports are listed before the change
11 13
MDL-10Performance checked at real volumeTech Anchor
  • Key reports respond within the agreed time at production volume
5 26
MDL-11Fact type chosen per business processTech Anchor + BA
  • Transaction, periodic snapshot or accumulating for each process
  • Reason stated
17
MDL-12Conformed dimensions across factsTech Anchor + BA
  • Shared dimensions (customer, product, date) are one definition across facts
11 17
MDL-13Surrogate keys and unknown membersTech Anchor
  • Rows with no match go to an 'unknown' member, not lost
3 17
MDL-14Date and time dimensionTech Anchor + BA
  • Calendar, fiscal calendar, holidays and time zones are in one date dimension
11 17
MDL-15Many-to-many relationships and bridgesTech Anchor
  • Each many-to-many has a bridge and a rule to avoid double counting
15 17
MDL-16Additive, semi-additive and non-additive measuresBA + Tech Anchor
  • Each measure states how it may be summed (over time, over product, not at all)
15 17
MDL-17Business-friendly names and descriptionsBA
  • Column and table names make sense to the business
1 11
MDL-18Late-arriving dimension handlingTech Anchor
  • A fact that arrives before its dimension is held or given an inferred member, then fixed
2 15
MDL-19Aggregates and performance tablesTech Anchor
  • Pre-built summaries exist only where measured need exists
  • Rebuild rules stated
5 26
MDL-20Clean-to-model build rules: incremental or rebuild, safe to rerunTech Anchor
  • For each model table: incremental or full rebuild
  • Rerun gives the same result
15 25

Go deeper

Existing material

For your engineer (optional):