Skip to the workspace
Pebellslearn by building
Data Quality and Lineage  ›  Capstone Project

Data Lineage

Data Lineage 14 minData lineage is the recorded path of a number from its sources through every transformation to the reports that use it, traced upstream to find where an error entered and downstream to see who a change affects.

bi analyst / Data Lineage

Explore each scene at your own pace.

01 · The rule

The rule

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 Meera

Lineage 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.

Scene 1 of 5
Hover to wake the cannons. Drag to move, or use arrow keys when focused. Press Enter to fire a shot.