Qlik Sense data lineage

Publications

Qlik Sense Data Lineage: Answer Where Every Number Comes From Before You're Asked

Hector Pincheira

Hector Pincheira

CIO | CTO
Digital Strategy & Technology Innovation

items

There is a question that ruins entire meetings: «Where did that number come from?» The silence that follows is not ignorance, it is a lack of traceability. The Qlik Sense data lineage It solves precisely that problem, because it turns a 30-minute discussion into a 30-second answer. And the problem is bigger than it seems. Only 51% of organizations had adopted business lineage by 2025, according to the sector’s data governance analyses. The rest continue to rely on figures they cannot track.

Qlik Sense data lineage

Meanwhile, Gartner estimates that poor data quality costs the average company between $12.9 million and $15 million annually. Furthermore, the 2026 hidden cost of downtime report puts the cost of a minute of unavailability at around $15,000. However, almost no one measures the cost of a dashboard that keeps running while displaying garbage. That is the most expensive scenario of all, because no one detects it.

The real problem: we trust the number, not its origin

First, let's distinguish two risks. A dashboard that goes down generates a ticket. On the other hand, a dashboard that lies generates a wrong decision. The difference is huge and, yet, most organizations invest only in the first risk. The second one is covered with informal trust: «that report was made by Juan, and Juan knows.».

However, that model only works until Juan changes jobs. Then the impossible question arises. Someone modified a field in the ERP, or the vendor changed a file format, or the data team renamed a column. No doubt nobody knows what applications depended on that. Therefore, the impact is discovered when the CEO sees an absurd figure on their cell phone on a Monday morning.

Consequently, the Qlik Sense data lineage answers a backward question: where does this data come from. Impact analysis answers the mirror question forward: what breaks if I change this. Together, both capabilities sustain confidence in every reported number. Without them, your BI is fast but fragile.

💡 Key point: Data trust is not built with more charts. It is built by demonstrating the complete path from the source to the figure.

The solution: how to implement Qlik Sense data lineage

First, the good news. Qlik Cloud includes a catalog service with native lineage and impact, showing a field's journey from its source to every application that consumes it. It is an excellent foundation. However, automatic lineage only describes the technical pipeline. It does not explain the business meaning or record who is responsible. That layer is built in the script, and it is the one that truly changes the conversation.

Step 1: Convert the script into a data contract

// ============================================================
// APP     : Commercial Sales
// Owner   : Commercial Management   |   Technical Custodian: IT/BI
// Source  : SAP B1 (OINV / INV1) |   Upload SLA: 6:00 a.m. daily
// Version: 4.2   Author: H. Pincheira   Date: 2026-08-27
// ============================================================
// Tags: populate the catalog and governance filters
TAG FIELDS SaleLine, MarginLine WITH '$measure', 'certified';
TAG FIELD  CustomerID              WITH 'master-key', 'sensitive';
// Comments: The business definition travels WITH the data
COMMENT FIELD LineMargin WITH
  'Net sales minus standard cost. Does not include service cost.';
COMMENT TABLE Sales WITH
  'Sales transactions. Detail level: document line. Source: SAP B1 INV1.';

Now, these three instructions seem decorative, but they are not. Tag allows the catalog to distinguish a certified measurement from an experimental field. COMMENT FIELD Make the definition appear when a user views the field details in the hub. As a result, the definition no longer lives in an Excel file that nobody opens.

Step 2: A self-generated QVD catalog in each load

The most valuable technical lineage in an environment with QVD layers is knowing what each file contains, when it was generated, and how many rows it brings. QlikSense exposes functions that read the QVD header without loading the data. That is why the scan is almost instantaneous.

// ============================================================
// QVD CATALOG: auto-generated technical lineage
// Reads only headers: does not load records, does not consume memory
// ============================================================
FOR EACH vFile IN FileList('lib://QVD/3_Present/*.qvd')
    LET vTable  = QvdTableName('$(vFile)');
    LET vRows  = QvdNoOfRecords('$(vFile)');
    LET vFields = QvdNoOfFields('$(vFile)');
    LET vCreated = QvdCreateTime('$(vFile)');
    QVDCatalog:
    LOAD
        '$(vArchivo)'                      AS QVDPath,
        '$(vTable)'                        AS LogicalTable,
        $(vRows)                          AS Rows,
        $(vFields)                         AS Fields,
        Timestamp('$(vCreated)')            AS GenerationDate,
        Round((Now() - '$(vCreated)') * 24, 0.1) AS HoursSinceLoad
    AUTOGENERATE 1;
    // Field-by-field breakdown: the detailed lineage level
    FOR vC = 1 TO $(vFields)
        FieldLineage:
        LOAD
            '$(vArchivo)'                       AS QVDPath,
            QvdFieldName('$(vArchivo)', $(vC))  AS FieldName
        AUTOGENERATE 1;
    NEXT vC
NEXT vArchivo

Therefore, the result is a governance application that answers in one click which QVD contains the field. Line margin, when it was last generated and how many rows it had. In addition, the column HoursSinceCharge Delete immediately the orphan files that have not been updated for weeks and that someone is still consuming.

Step 3: the refill log, your black box

// ============================================================
// LOG: Include at the END of each application's script
// ============================================================
Log:
LOAD
    DocumentName()            AS App,
    DocumentTitle()           AS AppTitle,
    Timestamp(ReloadTime())   AS ReloadDate,
    OSUser()                  AS ServiceUser,
    '$(vVersionScript)'       AS ScriptVersion,
    NoOfRows('Sales')        AS RecordCount
AUTOGENERATE 1;
CONCATENATE (Log)
LOAD * FROM [lib://QVD/9_Audit/bitacora_recargas.qvd] (qvd);
STORE Log INTO [lib://QVD/9_Audit/log_reloads.qvd] (qvd);
DROP TABLE Log;

In fact, this log is worth its weight in gold on audit day. It keeps the history of each reload with its row volume. Therefore, when someone claims that «the number changed,» you can show exactly which load produced it and with how many records. An abrupt jump in RowsDone It is usually the root cause, and it appears before anyone looks for it.

Step 4: Visible freshness and impact analysis

// Fixed text object in the header of EACH sheet
=If( (Now() - ReloadTime()) * 24 > 26,
     'DATA OUT OF DATE - last reload: '
       & Timestamp(ReloadTime(), 'DD-MM hh:mm'),
     'Data as of ' & Timestamp(ReloadTime(), 'DD-MM-YYYY hh:mm')
)
// "Impact Analysis" table: breaks if this field is changed
// Dimension: FieldName
Count(DISTINCT QVDPath)                                  // Affected QVDs
Concat(DISTINCT ConsumerApp, ', ')                    // Apps that use it
If(Count(DISTINCT ConsumerApp) >= 3, 'CRITICAL', 'Normal')

Likewise, the 26-hour threshold is not arbitrary. It allows for a daily load that fell behind by a couple of hours, but exposes one that did not run at all. It is a silent traffic light that prevents the worst-case scenario: making decisions based on stale data believing it is from today.

Business impact of Qlik Sense data lineage

That is, lineage is not an IT project. It is a credibility project. The effects appear on three measurable fronts.

  • Resolution speed. Teams that consolidate traces and metrics in a single location report improvements in mean time to resolution of around 23%. Tracing is no longer a labor-intensive process.
  • Fearless changes. With impact analysis, modifying an ERP field is planned. You know which apps to notify before touching anything.
  • Audit and compliance. Being able to prove the origin of a reported figure is a requirement today, not a luxury. Especially when AI begins to consume those very same data.

Furthermore, that last point deserves strategic attention. The AI agents that query your data today do not distinguish between certified and experimental data. Only explicit governance does. That is why lineage has become the trust layer that supports any augmented analytics initiative.

Common Mistakes and How to Avoid Them

⚠️ Common error: Believing that automatic catalog lineage is enough. It shows the pipeline, not the meaning or the owner. With no assigned owner, every questionable field ends up on the IT desk.

Document in a parallel Excel file. For example, any documentation that lives outside the script becomes obsolete in weeks. If the definition does not travel with the data, it does not exist.

Do not version the script. That is to say, without a version number in the log, you cannot correlate a change in a figure with a change in logic. A variable vVersionScript It takes a minute and saves days.

Load the catalog with the data. However, scanning QVD by reading records is slow and unnecessary. The functions Qvd* Read only the file header.

Certify everything. Also, if the 90% in your fields is listed as "certified," the label loses its value. Don't overuse the "certified" label; use it judiciously and clearly indicate what is still experimental.

Best practices for your Qlik Sense data lineage

First, publish the government app for everyone, not just IT. When a manager can see for themselves when their dashboard was loaded, half of the tickets disappear.

Furthermore, assign a business owner per fact table, with first and last name in the script header. Diffuse responsibility is the most frequent cause of abandoned data.

Also, check the catalog once a month for QVDs without consumption and fields without comments. It is a twenty-minute cleanup that prevents months of technical debt. You will find more governance frameworks in hectorpincheira.com.

Finally, measure trust. Ask your managers every quarter if they believe in the numbers they see. That soft metric predicts adoption better than any usage statistic.

Conclusion: your data navigation chart

A ship without a navigation chart can move fast, even though it doesn't know where it's headed. Your BI platform is in the same situation when no one can trace the origin of a figure. Qlik Sense data lineage is that chart: it doesn't speed up the journey, but it does make it reliable.

Therefore, I propose a concrete test for this week. Choose the most cited indicator from your management committee and try to trace it back to the source table in the ERP. If you cannot do it in less than five minutes, you already know what your next governance priority is. And you also know why meetings take so long.

Sources consulted: official documentation of lineage and impact analysis in Qlik Cloud, and business lineage adoption analysis of Atlan.

Answering where each number comes from is of little use if no one wants to hear the answer: The Semmelweis Reflex: Why Data Doesn't Save Companies That Refuse to Look.

Most Read

QlikSense Hierarchy: parent-child chart of accounts expanded by levels
QlikSense Hierarchy: the Chart of Accounts That Doesn't Add Up
QlikSense Sum TOTAL: share of each family over the total
QlikSense Sum TOTAL: the Percentage That Changes When You Filter
SAP Business One Inventory Revaluation - featured image of the tutorial
SAP Business One Inventory Revaluation: Fix Wrongly Loaded Costs
Empty chamber with wooden benches: the counterweight that required being present to be used
The Veto You Had to Say in Person: Your Decisions With No Counterweight
SAP Business One customizations - featured image of the pre-upgrade audit tutorial
SAP Business One Customizations: Pre-Upgrade Audit
SAP Business One Customer Concentration - featured image of the tutorial
SAP Business One Customer Concentration: Measure Your Risk with SQL

RELATED ARTICLES