Step 9 of 36 · Data platform
Metric definitions and a semantic layer
If revenue is defined in six dashboards it has six values. Define each metric once, in code, with an owner, and make every tool read it.
Two executives bring different numbers for the same metric to the same meeting. The meeting becomes an argument about data. Your function loses credibility, although each number was correct for its own definition.
The cause is that definitions live inside individual queries and dashboards. A semantic layer moves them to one governed place. Each metric is defined once, in version-controlled code, with its dimensions, filters and owner. Every dashboard, notebook and application reads from it.
The technology is the easy half. The hard half is getting sales, finance and product to agree what an active customer is and who may change the definition. Chair those conversations yourself for the first few metrics. Where two definitions are both needed, give them two names.
Try this week
- Find one metric that shows different values in two reports, trace both definitions and get the owners to agree on one.
- Write the definition, owner and change process for your company's five headline metrics on one page.
Signs you've got it
- Meetings discuss what to do about a number, not which version of it is right.
- Changing a headline metric takes a reviewed code change and an announcement, not an edit to one dashboard.
Resources
- articleThe missing piece of the modern data stack (opens in a new tab)Benn Stancil
- guideConformed Dimensions (Kimball Dimensional Modeling Techniques) (opens in a new tab)Kimball Group
- articleKPI Principles (opens in a new tab)Ilan Man
- articleUbiquitous Language (opens in a new tab)Martin Fowler
- bookLean Analytics (opens in a new tab)Alistair Croll and Benjamin Yoskovitz