QlikSense Master Measures: The Government That Ends the Three Truths - featured image

Publications

Qlik Sense Master Measures: The Government That Ends the Three Truths

Hector Pincheira

Hector Pincheira

CIO | CTO
Digital Strategy & Technology Innovation

items

Two managers walk into the same meeting with the same indicator. One says the margin was 32%. The other, with equal confidence, says it was 28%. Both are right, because each one calculated it their own way. And at that instant the meeting stops being about the business and becomes about who has the correct number. That is the moment when QlikSense master measures stop being a technical detail and become a governance issue. Because when everyone defines their own truth, the company does not have data: it has opinions with decimals.

QlikSense Master Measures - A single source of truthQlikSense Master Measures - A single source of truth
Master Measures — A single source of truth

The phenomenon has a name and is more expensive than it looks. Inconsistent metrics across teams are one of the most common and damaging data governance challenges: they erode trust, slow decisions and generate operational waste. The root cause is almost never the technology. It is that the same business logic is written in many different places, and consistency ends up depending on each analyst's memory and discipline, not on structure.

QlikSense master measures - team aligned on a single metric definitionQlikSense master measures - team aligned on a single metric definition
When the KPI definition is unique, the team argues about decisions, not arithmetic.

The real problem: every dashboard, a different truth

In most companies, the formula for margin, churn or compliance lives scattered: a piece in an Excel sheet, another in a dashboard, another in the head of the senior analyst who goes on vacation. When that person is away, nobody knows for sure how the number that governs the company is calculated.

The symptom is predictable. Teams interpret the same metric differently, choose different periods or use different sources. Consequently, managers spend their time arguing over which report is right instead of what actions to take. It is an invisible tax rate on every decision: you pay it in meeting minutes, in eroded trust and in opportunities that pass by while the arithmetic is debated.

The solution the data industry proposes is a «metrics layer»: a centralized repository that acts as the single source of truth for all KPI definitions. It sounds like a months-long project with a consulting budget. But if your platform is QlikSense, you already have that repository built in. It is called the master items library, and you are probably underusing it.

The solution: QlikSense master measures as the single source of truth

Master measures let you create predefined, reusable expressions that guarantee a single version of the truth. The idea is as simple as it is powerful: the KPI formula is written once, saved in the application library, and every chart consumes it from there. If the definition changes tomorrow, it is updated in one place and every dashboard that uses it reflects the change automatically.

Compare that with the current model. Today, changing the margin definition means hunting the formula down in forty objects spread across twelve applications, praying you do not miss one. With master measures, it is a single change, propagated without exceptions. The difference between those two worlds is the difference between governing and improvising.

How a master measure is defined by script

The library can be populated from the interface, but a governed and scalable approach defines the measures programmatically and under version control. This is the structure of a well-documented master measure:

// Definición gobernada de la medida maestra "Margen Bruto %"
// Autor: Control de Gestión | Versión: 2.1 | Rev: 2026-07
Set vMargenBrutoPct =
  Sum({<TipoDoc={'Venta'}>} MontoNeto - CostoDirecto)
  /
  Sum({<TipoDoc={'Venta'}>} MontoNeto);
// La medida maestra referencia SIEMPRE la variable gobernada:
//   Título:      Margen Bruto %
//   Expresión:   $(vMargenBrutoPct)
//   Formato:     #,##0.0%
//   Descripción: Margen sobre ventas netas. Excluye notas de crédito.
//   Etiquetas:   #rentabilidad #oficial #controlgestion

Note three details that separate a professional from an amateur: the header with author and version, the description explaining what the metric includes and excludes, and the tags that make it findable. A measure with no description is a trap waiting for the next person who uses it wrong.

💡 Key point: The golden rule of metrics governance: create a master measure for every expression used in more than one object. If a formula appears twice, it is already a candidate to diverge. Centralize it before it does.

The description isn't optional: it's the metric's contract

In QlikSense, a master measure's description is shown to the user through the "show details" option on every visualization. That means whoever looks at the chart can read, without asking anyone, exactly what that number represents and what it leaves out. The metric stops being a black box and becomes an explicit contract between whoever defines it and whoever uses it.

// Good example of a description as the metric's contract
Description:
  "OTIF performance = orders delivered on time AND complete
   / total orders in the period. 'On time' = delivery date
   <= committed date. 'Complete' = 100% of lines fulfilled.
   Excludes cancelled orders and rescheduled backorders."

A description like that removes the most expensive question in any data meeting: "but what exactly does this include?". The number arrives with its definition attached. And a shared definition is the foundation on which trust in data is built.

Performance: why governance also makes you faster

Centralizing metrics isn't only about order; it's about speed. Two practices make the difference. First, avoid IF statements inside measures: they are highly inefficient, and that logic is better moved to the load script whenever possible. Second, use variables in the front end only for legitimate cases -reference lines, conditional colors, Set Analysis snippets- and not to duplicate logic that should live in a master measure.

// SLOW: the classification is evaluated row by row in the chart
If(Sum(Ventas) > 1000000, 'High', 'Low')
// FAST: the classification is resolved once in the load script
//   ...leaving the master measure clean and fast
LOAD Cliente,
     If(Sum(Ventas) > 1000000, 'High', 'Low') as CustomerSegment
RESIDENT Ventas GROUP BY Cliente;

Governance done right, then, is not bureaucratic drag. It is the opposite: it takes heavy formulas out of the point where the user is waiting for an answer and resolves them once, at the right moment. Order and speed, in this case, are the same decision.

QlikSense master measures - governed library of reusable metricsQlikSense master measures - governed library of reusable metrics
A governed metrics library: defined once, reused everywhere.

Business impact: trust as a strategic asset

The most obvious benefit is time recovered. When nobody argues about how margin was calculated, the meeting goes straight to what to do about it. But the deeper impact is trust. A board that trusts its numbers decides faster and with more conviction. A board that doubts them asks for "further analysis" that pushes every decision back a week.

Think of it as infrastructure. Nobody applauds drinkable water coming out of the tap, but the whole city stops when it doesn't. Master measures are that invisible plumbing: when they work, the organization decides without friction; when they are missing, every number demands a forensic investigation before it can be used. Metric governance is not a luxury for large companies; it is what separates a company that scales from one that drowns in its own data.

There is a cultural dividend too. When the official definition of every KPI is public, versioned and explained, data politics ends: that game where each area picks the calculation that favors it. A single source of truth does not just align systems; it aligns incentives. And an organization aligned around the same numbers is, by definition, harder to manipulate and easier to lead.

Common Mistakes and How to Avoid Them

⚠️ Common error: Creating master measures with no description and no owner. A library of a hundred undocumented metrics is as chaotic as having no library at all. Every measure needs a description, a tag and someone accountable for its definition.

The second mistake is letting anyone create master measures. Without an approval process, the library fills up with duplicates: "Margin", "Margin v2", "Margin final". Governance demands a curator, not an assembly. Define who can publish an official metric and who can only propose one.

The third mistake is putting heavy logic with nested IF inside measures. We already covered it: that belongs in the script. A master measure should be a clean, fast, auditable expression, not a maze of conditionals.

The fourth mistake is not versioning. If you change the definition of margin without recording when or why, you break historical comparability without warning. Every change to an official metric must be documented, like any serious accounting change.

Best practices from experience

First, name an owner for the metrics library, ideally in Management Control. Someone has to be accountable for "margin" meaning one single thing across the whole company. No owner, no governance.

Second, adopt a naming and tagging convention. Prefixes by domain, tags such as #official to tell approved metrics apart from experimental ones. Search is useless if the name says nothing.

Third, review the library quarterly: remove duplicates, update descriptions, retire metrics nobody uses anymore. A metrics library is a garden, not a monument; it needs pruning. If you want to see how this governance approach fits into a broader data strategy, you will find more material at hectorpincheira.com.

Conclusion: one single truth, many better decisions

The technology for a single source of truth is already inside your QlikSense. QlikSense master measures do not require an extra license or a six-month project; they require the decision to govern instead of improvise. Defining each metric once, documenting it, versioning it and protecting it is probably the highest-return, lowest-cost investment a data leader can make.

Here is a question for your next committee: if you ask three areas for the same indicator, do you get three identical numbers or three versions of the truth? The answer will tell you how much data governance you are missing. And the good news is that the fix is not buying more technology, but using better what you already have.

When nobody takes ownership of the number, the problem stops being technical: La Silla Vacía: Who Signs When AI Decides.

Most Read

Ballena jorobada bajo el agua con su aleta pectoral extendida: la esperanza en la tecnología y la biomimética
La ballena que volvió: la esperanza en la tecnología y la que no cabe en un tablero
SAP data in ChatGPT: an open door at the far end of a dark room
The Tab Next Door: The SAP Data in ChatGPT That Nobody Authorized
SAP Business One Purchase Price Variance - featured image of the tutorial
SAP Business One Purchase Price Variance: Detect the Inflation in Your Buying Costs
QlikSense format changeovers: actual minutes against the standard
QlikSense Format Changeovers: the Minutes Nobody Bills
QlikSense buttons and actions: executive dashboard with indicators
QlikSense Buttons and Actions: the Dashboard that Runs the Meeting
SAP Business One Internal Reconciliation - featured image of the tutorial
SAP Business One Internal Reconciliation: Clear False Open Items

RELATED ARTICLES