Data Lineage
On the morning of 3 April, Farah messages Ishaan: "On-time for yesterday says 70%. Is Kolkata on fire?" It usually sits around 90%. Either something terrible happened in the warehouses, or something happened to the data on its way to the dashboard. To tell which, you need to know that way: every step the number took from its source to the screen.
The rule
Trace a number upstream to fix it, downstream to protect others.
Data lineage is the recorded path of a number: which sources feed it, which steps transform it, and which reports use it. For Weftwise's on-time KPI:
Shop platform (orders) Courier feed (deliveries)
| |
raw_orders raw_deliveries <- nightly loads by Kabir
| |
stg_orders stg_deliveries <- cleaned: types, time zone,
\ / test orders removed
+----- fct_deliveries ---+ <- one row per delivered order,
| with an on_time flag
measure: On-time delivery %
|
+----------------+----------------+
| | |
Ops dashboard Monthly report Courier scorecard
for MeeraLineage works in two directions:
- Upstream, towards the sources, when a number looks wrong: where did the error enter?
- Downstream, towards the reports, before or after a change: who will be affected?
Modern BI tools and transformation tools can draw much of this map automatically from the code. Even a hand-drawn version like the one above saves hours the first time something breaks.