Home › How we work › Data essentials › Clean

Topic 9 · Layer 3 of 6

Clean

One clean, trusted row for every real thing: one customer, one order, one product.

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 treatment plant. Dirt is taken out by steps that were agreed and written down, so you can say what was removed and why.

Raw data has duplicates, wrong types, odd spellings and missing values. This layer applies written rules: what counts as the same customer, what counts as invalid, what to do with a bad record. It also keeps history, so we can say what a value was last March.

Jon Smith, PuneJ. Smith, PuneSMITH JON, PuneAgreed rulesame name + same phone = same personCustomer 1042Jon Smith, PuneReview pilerows that break a rulethe pile is counted and someone looks at it

Clean means written rules. What is kept, what is merged, and what is parked for a person.

Technical names you may hear for this layer: silver.

What matters most

Three things

1Identity

What makes two records the same thing? Same email, same phone, same ID? This one decision shapes every customer count.

2Rules that are written down

What is invalid, and who decides? Dropped, fixed, or set aside for a person to look at? Rules hidden in code cannot be reviewed by the business.

3History

Do we need 'as it was then'? If a customer moves city, do last year's sales stay in the old city? Deciding late means a rebuild.

Where it goes wrong

How this layer fails

What goes wrongWhat it looks likeEarly warning signWhat it costs
Duplicate or merged peopleCustomer counts are inflated, or two real customers become one.Nobody can say which customer ID is the real one.Every customer metric is doubtful.
Bad rows disappearA rule silently drops rows and totals fall short.Rejected rows are not counted or reviewed by anyone.Missing money that nobody can find.
History needed too lateSomeone asks for last year's view and the data cannot give it.'Do we need history?' was never asked.A rebuild and a reload of years of data.

Causes from the failure list

Dependencies

What and who you depend on

  • Source owners, to explain what the values mean.
  • Business data owners, to decide the rules.
  • Reference data (country codes, product lists) from a trusted place.
  • Landing being complete (the layer before).

In the room

Four questions to ask

  1. What makes one record the same as another?
  2. When a record breaks a rule, do we drop it, fix it, or park it for a person?
  3. Do you ever need to see yesterday's version of a value?
  4. Who looks at the rejected rows, and how often?
Done means: The rules are written and each has an owner. Rejected rows are counted and reviewed. Spot checks agree with the source expert.

The reusable backlog

Backlog for this layer

10 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
CLN-01Identity rule: what makes a record the sameBA
  • Written for each main thing (customer, product, order)
  • Confirmed by the data owner
3 11
CLN-02Data quality rules written, each with an ownerBA
  • Each rule in plain words with an owner
  • Thresholds agreed
3 18
CLN-03Handling of bad rows agreedBA
  • For each rule: drop, fix or park for a person
  • Business owner agrees
3 15
CLN-04Rejected-row review pile, with a reviewerPM
  • A named person reviews rejected rows
  • Frequency agreed
  • Counts are reported
3 24
CLN-05History need decidedBA
  • For each main thing: do we need 'as it was then'?
  • Decided with the business owner
12 17
CLN-06Reference and master data source agreedBA
  • Country codes, product lists and similar have one trusted source
  • Owner named
1 11
CLN-07Duplicates and keys tested on real dataTech Anchor
  • Duplicate counts measured before and after
  • Keys proved unique on real data
3 15
CLN-08Cleaning rules explained back to a source expertBA
  • The expert confirms the rules do what they meant
  • Differences logged
1 15
CLN-09Late and corrected records shown to workTech Anchor
  • A late row and a corrected row are demonstrated
  • The right number appears
2 15
CLN-10Quality results visible to the businessTech Anchor
  • Counts of passed and failed checks are visible
  • Business owner can read them
18 27

Go deeper

Existing material

For your engineer (optional):