Finance shows a margin of 31.4%, sales 29.8%, stock 33.1%. Same month, same data, and the meeting starts with reconciliation again. The cause is almost always the same: the formula lives separately in every report.
A semantic model fixes exactly that. It is the layer between data and reports where tables, the relationships between them, KPI formulas and access rules are defined once. Reports, Excel and questions to an AI assistant all take their numbers from this layer, so they agree.
Below: the types of semantic models, what they are used for and how to build one people trust.
What a semantic model is
"Semantic" means "about meaning". The model translates technical tables into business language: instead of fct_sales.amt_net people see "Revenue", and instead of joining three tables they simply pick "Region" and "Month".
A semantic model usually has six layers:
- Tables. Facts (events: sales, payments, visits) and dimensions (reference data: date, product, customer), most often as a star schema.
- Relationships. How tables connect and which way filters flow.
- Measures. KPI formulas: margin, revenue, average order value, DSO. Defined once.
- Hierarchies and formatting. Year, quarter, month; percentages, currency, human-friendly names.
- Security. Who sees which rows (RLS) and which tables or columns (OLS).
- Metadata. Descriptions of measures and fields, synonyms. These are what help AI assistants answer questions correctly.
In Power BI, semantic models were called datasets until November 2023. The name changed, the idea did not.
Types of semantic models
By technology
| Type | Examples | Formula language | Where it fits |
|---|---|---|---|
| Tabular models | Power BI, Analysis Services Tabular, Azure Analysis Services | DAX | Most modern BI projects |
| Multidimensional OLAP cubes | Analysis Services Multidimensional, other OLAP servers | MDX | Legacy enterprise systems, complex hierarchies |
| Semantic layer over the warehouse | LookML in Looker, dbt Semantic Layer, Cube, AtScale | SQL and YAML | Several BI tools on the same metrics |
| Semantics in the data platform | Snowflake semantic views, Databricks metric views | SQL and YAML | Metrics next to the data, for BI and AI agents |
| Model inside a BI tool | Tableau published data sources, Qlik data model | tool specific | A company that lives in one tool |
Tabular models keep data compressed by column in memory (in Power BI this is the VertiPaq engine) and calculate measures on the fly. This is the Power BI standard.
OLAP cubes pre-aggregate data along dimensions. They handle complex hierarchies and large volumes well, but they are harder to change and MDX skills are getting scarce. New projects rarely start on them.
A semantic layer over the warehouse (also called a metrics layer) defines metrics in code next to the warehouse and serves them to different tools. Handy when a company uses Power BI, Tableau and Python analysts at once. The cost: one more system to run.
Semantics in the data platform is recent: Snowflake and Databricks let you define metrics inside the platform so that both BI and AI agents use them. The approach is young, so check which of your tools can read it.
By scope
- Enterprise (shared) model. One model per subject area, such as "Sales" or "Finance", built and maintained by the data team. Dozens of thin reports with no data of their own sit on it.
- Departmental model. Built by a department analyst for their own needs. Fine as long as its measures do not drift from the enterprise ones.
- Personal model. One analyst's Excel or Power BI Desktop file. Good for experiments, bad as a source of numbers for management.
A healthy picture: a few enterprise models with certified measures, and departmental models built on top of them instead of calculating the same things again.
By storage mode (Power BI)
- Import: data is copied into the model on a schedule. Fastest for users; fresh as of the last refresh.
- DirectQuery: the model stores no data, every visual sends a query to the source. Fresh, but slower and it loads the source.
- Direct Lake: a model in Microsoft Fabric reads Delta files in OneLake directly. Speed close to Import without a full copy.
- Composite model: some tables in Import, some in DirectQuery or Direct Lake, and the model can build on another published model.
Why the business needs a semantic model
- One version of the truth. Margin is defined once and every report shows the same number. Reconciliation at meetings goes away.
- Self-service. A manager builds their own view in Power BI or Excel from ready measures, without SQL and without waiting for an analyst.
- Security in one place. Access rules live in the model, not in copies of reports.
- Speed. The model is tuned for business questions, so reports open in seconds.
- A foundation for AI. Assistants such as Copilot answer questions using the model's measures and descriptions. Without a model, AI guesses the formula and every answer may differ.
- Less work. A new requirement means one change in the model, not edits in twenty reports.
How to build a semantic model: 10 steps
- Start with questions, not tables. List 10 to 20 decisions the reports must support and the measures behind them. For each measure: formula, source, owner.
- Define the grain. What is one row of the fact table: a receipt line, a document, a day per product? A wrong grain breaks every number downstream.
- Build a star schema. Facts in the middle, dimensions around. A wide flat table with a hundred columns looks simpler but produces slow, inaccurate models.
- Add a date table. A separate date dimension with every day and no gaps, marked as the date table. Without it, year-over-year comparisons are unreliable.
- Set up relationships. One to many, filtering in one direction from the dimension to the facts. Bidirectional filters and many-to-many only where there is no other way.
- Write measures, not calculated columns. Revenue, margin, average order as explicit DAX measures with a format and a description. Hide technical columns and name fields in business language.
- Add security. RLS for rows, OLS for sensitive tables and columns. Check that the sum across all roles equals the grand total.
- Choose storage mode and refresh. Import with incremental refresh for most needs; DirectQuery or Direct Lake where freshness in minutes matters.
- Test the numbers. Reconcile key measures with the source and with signed-off financial statements for several periods. Record the result.
- Publish it as a product. Source control (in Power BI the PBIP and TMDL formats with Git), development, test and production environments, a model owner, measure descriptions, a "certified" label. Build reports as thin reports on the published model.
Common mistakes
- A model per report. Twenty reports, twenty models, twenty versions of margin. The same problem, only more expensive.
- One giant model for the whole company. Slow, fragile, and nobody understands all of it. Several models by subject area with shared dimensions work better.
- Logic in reports. Calculations in visuals and page filters instead of measures in the model.
- Bidirectional relationships everywhere. Hidden filters, slow queries, ambiguous numbers.
- No owner. Within six months an ownerless model collects measures named "Margin 2", "Margin new", "Margin (do not touch)".
- No measure descriptions. Users cannot tell "Revenue" from "Net revenue", and neither can an AI assistant.
Where to start
Take the one measure people argue about most often at meetings, margin for example. Find every report that calculates it and compare the formulas. If there is more than one formula, that measure is where your semantic model should start.
For where the model sits in the architecture, read BI architecture options and 6 levels of data architecture. We can help design or review a model: business intelligence. Terms used here are in the glossary.
How many versions of one margin live in your reports?
