Semantic Layer
What is Semantic Layer?
A semantic layer is a business-friendly layer between raw data and the tools that use it, defining metrics, dimensions and relationships once so reports, dashboards and AI tools calculate them consistently.
Updated November 2026 · 2 min read
A semantic layer is where an organization writes down, once, what its business terms mean and how to calculate them. Sitting between raw data and the tools that use it, it defines metrics, dimensions and relationships, such as what "net revenue," "active customer" and "region" mean and how to calculate them, so every report, dashboard, spreadsheet and AI tool calculates them the same way. Without one, each tool and analyst writes their own logic, and two dashboards showing "revenue" disagree.
The idea dates back to business intelligence tools of the 1990s, such as the "universes" in BusinessObjects. Interest revived in the 2020s with standalone and warehouse-native semantic layers, such as dbt's semantic layer, and with AI, because language models querying data need exact definitions to avoid producing plausible but wrong numbers.
What does a semantic layer define?
- Metrics: calculations, such as revenue, margin, churn rate, with their exact formulas and filters.
- Dimensions: ways to slice metrics, such as time, product, region and customer segment.
- Entities and joins: how tables relate, such as orders to customers.
- Business names: friendly labels for technical fields.
- Access rules: who can see which data.
A semantic layer does not usually store the data itself. The data stays in the warehouse or lakehouse, and the layer translates business questions into queries against it.
Why use a semantic layer?
- Consistency: one definition, used everywhere.
- Self-service: business users can explore data without writing SQL.
- Easier change: update a definition once, and every tool picks it up.
- Accurate AI answers: AI assistants query defined metrics instead of guessing at tables and joins. See AI grounding.
An example
Consider a hypothetical subscription company whose finance and sales dashboards show different monthly recurring revenue, differing by about 6%. Investigation finds that finance excludes customers in their trial period and sales includes them, and each team calculates currency conversion differently. The company defines MRR once in a semantic layer, with explicit rules for trials and currency, and connects its BI tool, spreadsheets and a new AI assistant to it. All three now show the same number, and when the definition later changes to exclude paused subscriptions, it is updated in one place.
Common pitfalls
- Defining metrics without business owners, so disputes are never settled.
- Tools that bypass the layer, recreating inconsistency.
- Too many near-duplicate metrics.
A semantic layer is a practical way to achieve a single source of truth for metrics and depends on good metadata management.
Frequently asked questions
Does a semantic layer store data?
Usually not. A semantic layer holds definitions, such as metric formulas, dimensions, joins, business names and access rules, while the data itself stays in the warehouse or lakehouse. When someone asks a business question, the layer translates it into a query against the underlying tables, so every connected tool computes the same answer from the same source data.
Why do AI assistants need a semantic layer?
Language models that query data need exact definitions. Without a semantic layer, an AI assistant has to guess which tables, joins and filters make up a metric like revenue, and it can return numbers that look plausible but are wrong. Pointing the assistant at defined metrics gives it the same calculations that dashboards and spreadsheets use. See AI grounding.
What goes wrong when companies implement a semantic layer?
The common problems are organizational more than technical. Metrics defined without business owners leave disputes unsettled. Tools and analysts that bypass the semantic layer recreate the old inconsistency. A growing list of near-duplicate metrics makes it hard to know which one to use. Assigning an owner to each metric and routing reporting tools through the layer addresses most of these.
Related terms
AI Grounding
Tying AI answers and actions to real, verifiable sources of information.
Single Source of Truth (SSOT)
One authoritative place for each piece of data, so everyone uses the same.
Metadata Management
Organizing data about data so people can find and trust information.
Ontology
A formal model of a domain's concepts and how they relate.