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.
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.
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 wrong | What it looks like | Early warning sign | What it costs |
|---|---|---|---|
| Duplicate or merged people | Customer 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 disappear | A 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 late | Someone 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
- 3. Data quality worse than expected: Real data is messier than the sample.
- 18. No daily data quality checks: You find out when the CEO does.
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
- What makes one record the same as another?
- When a record breaks a rule, do we drop it, fix it, or park it for a person?
- Do you ever need to see yesterday's version of a value?
- Who looks at the rejected rows, and how often?
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.
| ID | Item | Owner | Done when (acceptance criteria) | Prevents causes |
|---|---|---|---|---|
| CLN-01 | Identity rule: what makes a record the same | BA |
| 3 11 |
| CLN-02 | Data quality rules written, each with an owner | BA |
| 3 18 |
| CLN-03 | Handling of bad rows agreed | BA |
| 3 15 |
| CLN-04 | Rejected-row review pile, with a reviewer | PM |
| 3 24 |
| CLN-05 | History need decided | BA |
| 12 17 |
| CLN-06 | Reference and master data source agreed | BA |
| 1 11 |
| CLN-07 | Duplicates and keys tested on real data | Tech Anchor |
| 3 15 |
| CLN-08 | Cleaning rules explained back to a source expert | BA |
| 1 15 |
| CLN-09 | Late and corrected records shown to work | Tech Anchor |
| 2 15 |
| CLN-10 | Quality results visible to the business | Tech Anchor |
| 18 27 |
Go deeper
Existing material
For your engineer (optional):