Power BI semantic model: definition, worked example and the rules of a sound model

Published · Updated · 13 min read

Dylan Arnaud, founder of Datafuji

A Power BI semantic model, or data model, is the invisible part of a report: the tables loaded from your sources, the relationships that connect them and the measures that calculate your KPIs. Build it badly and a polished report shows revenue that is 5% off, with no error message at all. This article shows how to spot the problem, put a number on it and fix it.

What is a Power BI semantic model?

A semantic model, formerly called a dataset, is the layer that sits between your sources and your reports. It organizes the data into tables, relates them and holds the company’s calculation rules. It thus becomes the single source of truth: every page gives the same number.

A Power BI report has two levels. On top, the pages and charts: what you see. Underneath, the model, which holds three things:

  • tables, loaded from the accounting system, the CRM or Excel files, and prepared by Power Query;
  • relationships, which say how a filter on customers reaches the invoices;
  • measures, formulas written in DAX that calculate revenue, margin or variance to budget.

In a well-organized model, tables come in two kinds. The fact table records the events to be added up, for example invoice lines. The dimension tables describe those events: customers, products, dates. As a rule, each relationship is one-to-many: a customer appears once in the customer table, but on many rows of the fact table.

The word “semantic” means the model carries the business meaning: what “revenue” means at your company, excluding VAT, net of credit memos, at the invoice date. The software itself is introduced in What is Power BI and what is it used for.

The diagram shows where the accuracy of the numbers is decided.

Three-tier diagram. At the bottom, the sources: accounting, CRM, Excel files, prepared by Power Query. In the middle, the semantic model: the Invoice Lines table related to the Customers, Products and Dates tables, and the Revenue (excl. VAT) measure, written once, worth €1,248,900. At the top, the Leadership, Sales and Finance reports and Copilot all read this same model and all display €1,248,900.Three-tier diagram. At the bottom, the sources: accounting, CRM, Excel files, prepared by Power Query. In the middle, the semantic model: the Invoice Lines table related to the Customers, Products and Dates tables, and the Revenue (excl. VAT) measure, written once, worth €1,248,900. At the top, the Leadership, Sales and Finance reports and Copilot all read this same model and all display €1,248,900.
Three reports and Copilot, Power BI’s AI assistant, read the same model: the model decides the number, not the page.

A definition corrected in the model is therefore corrected in every report at once; a definition copied into each report eventually drifts.

Data model, semantic model, dataset: three names for one object

These three terms refer to the same object at different stages; the report is a separate object that queries the model. Microsoft renamed “datasets” to “semantic models” in November 2023, and states that it is a rename only, with no effect on existing reports.

TermWhat it refers toWhere you see it
Data modelThe tables, relationships and measures, while they are being builtPower BI Desktop, Model view
Semantic modelThe same model, once published and sharedPower BI service, Microsoft Fabric, Copilot
DatasetThe former name of the semantic model, until November 2023Older tutorials, the Power BI REST API
Report (a different object)The pages and visuals that query a modelPower BI Desktop and service

A single semantic model can feed several reports, a PivotTable in Excel and Copilot: it is then called a shared model.

Import, DirectQuery, Direct Lake: where the data lives

Each table in the model has a storage mode, which says whether its data is copied into the model or read directly from the source. For an SME, Import mode is almost always right; the others are for data volumes or freshness needs that few SMEs have.

Storage modeHow it worksWhen to choose it
ImportThe data is copied and compressed in memory, then refreshed at set timesThe general case: fast, every feature available
DirectQueryEach visual queries the source live, with no copyVery large volumes, or data that must be up to the minute
Direct LakeThe engine reads Delta tables stored in OneLake, Microsoft Fabric’s data lakeCompanies already on Fabric, large volumes
DualThe table behaves as Import or DirectQuery depending on the queryDimension tables (dates, customers) in a model that mixes modes

A model whose tables use several modes is called a composite model: for example, imported history alongside an orders table in DirectQuery.

On a Pro license (the standard per-user subscription), a model is limited to 1 GB and 8 scheduled refreshes a day; a Premium or Fabric capacity (dedicated compute the company rents) allows up to 48 a day in the model settings. Storage mode changes speed and freshness, not the calculation logic: a badly built model gives the same wrong number whatever the mode.

When a model outgrows these limits, preparation moves upstream: an ETL tool (which extracts, transforms and loads the data) feeds a data warehouse every night, and the model reads from it.

How can a polished report show the wrong number?

Most often, a table mixes two levels of detail, one row per order and one amount per invoice: the sum then double-counts every invoice that covers two orders, with no error message at all.

This level of detail is called the grain: what one row of the table represents.

Take a fictional distribution SME: at the management meeting, the report shows €1,312,400 in revenue through the end of September, while the general ledger shows €1,248,900. In the model, someone merged the invoice export with the order export into a single “Sales” table, to analyze sales by sales rep and by product. Invoice F-2611, for €12,400 excluding VAT, the largest of the batch, covers two orders:

OrderOrder amountAmount copied from invoice F-2611
C-501€7,000€12,400
C-502€5,400€12,400
Sum in the report€12,400€24,800

The report adds up the last column. Over nine months, 62 invoices cover two orders; their amounts, €63,500 in total, are counted twice:

Variance = report − general ledger
         = 1,312,400 − 1,248,900
         = €63,500
Relative variance = 63,500 ÷ 1,248,900
                  = 5.1%

The diagram shows where the duplicate comes from.

Top left, the Invoices table, one row per invoice: F-2611, €12,400. A merge produces, on the right, the Sales table, one row per order: C-501 and C-502 each carry the invoice amount, €12,400, and their sum gives €24,800, a wrong figure. Below, the correct version, the Invoice Lines table, one row per invoiced order with its own amount: €7,000 and €5,400, i.e. €12,400.Top left, the Invoices table, one row per invoice: F-2611, €12,400. A merge produces, on the right, the Sales table, one row per order: C-501 and C-502 each carry the invoice amount, €12,400, and their sum gives €24,800, a wrong figure. Below, the correct version, the Invoice Lines table, one row per invoiced order with its own amount: €7,000 and €5,400, i.e. €12,400.
One invoice, two orders, the amount twice: the merge turns €12,400 into €24,800.

Nothing was entered incorrectly: the shape of the table multiplies the amount. A 5% gap is the most dangerous kind, because it is plausible: small enough to get through a management meeting, large enough to skew a bonus or a budget.

The fix belongs in the model, not in the chart. You go down to the finest grain, the invoice line: one row per invoiced order, carrying its own amount, €7,000 for C-501 and €5,400 for C-502.

The sales rep and the product connect to it through shared dimension tables. That is the principle of the star schema, explained step by step in our dedicated article.

How do you recognize a shaky data model?

You can spot a shaky model in meetings, without opening Power BI Desktop: two numbers for the same KPI, a total that does not tie to the accounts, totals that change with the filter. Two or three of the following eight signs warrant a check.

What you seeWhat is happening in the modelThe risk
Two numbers for the same KPIRevenue is calculated in several measures or files, each with its own ruleThe meeting is about the number, not the decision
The total does not tie to the accountsRows counted twice after merging tables, or a poorly defined relationshipBonuses, budgets or prices based on a wrong number
Totals change with the filterFilters do not flow between tables as intendedEveryone finds “their” number depending on the page they look at
“Don’t touch that report”The model has grown in layers, with no documentationEvery new request becomes risky and expensive
Only one person knows how to change itThe rules live in their head, or in formulas only they understandThe day they leave, reporting stops
The report takes several seconds to respondA table that is too wide, unused columns, calculations done in the wrong placePeople stop opening the report; Excel comes back
Year-over-year comparisons are wrongNo proper calendar table, or badly related datesGrowth or decline that does not exist
Field names are codes“MNT_NET”, “CA2”, “Measure 3”: the model speaks the source’s languageNobody knows which field to use; nor does Copilot

For each sign, the technical cause and its fix are in the symptom, cause, fix table of the star schema article.

What does a shaky model cost?

A shaky model costs you in three ways: in hours of reconciliation every month, in decisions based on a wrong number, and in changes that get slower and slower. The second cost is the highest, and the least visible.

Nobody can put a figure on it for you, but the calculation fits in a few lines. In the example SME, the sales bonus is 2% of revenue: on €63,500 counted twice, it pays out €1,270 too much.

If the FP&A analyst (contrôleur de gestion in France) spends a day and a half a month explaining the gap, that is 18 days a year.

The other costs are harder to measure:

  • Lost trust. After two gaps come to light in management meetings, executives may go back to their Excel files. The report is still paid for, but no longer read.
  • More expensive changes. Adding a KPI to a disorganized model takes longer and sometimes breaks something else; each request costs a little more than the last.
  • Dependence on one person. If only one person understands the model, their absence stops reporting.
  • Unusable AI. With a confused model, Copilot gives confused answers.

Start by counting the reconciliation hours with your teams: that number alone is often enough to decide whether the model needs checking.

What does a good data model look like? Five rules

A good model is not a complicated model: it is one where every number has a single origin and a single definition, reused by every page and by Copilot. Five rules are enough, and you can demand them from your team or your provider.

  1. A written grain for each table. Everyone knows what a row represents: an invoice line, a budget month. Ralph Kimball, who pioneered modeling with fact and dimension tables, calls declaring the grain “the pivotal step in a dimensional design.” It is the step that would have prevented the duplicate on invoice F-2611.
  2. One KPI, one measure, one definition. Revenue is calculated once, with its written rule, and every page uses it.
  3. Shared dimensions. A single table each for customers, products and dates filters all the data: the same filter gives the same result everywhere.
  4. Business names. “Revenue (excl. VAT),” not “MNT_NET”. Technical fields are hidden from readers.
  5. Short documentation. Sources, rules and points to watch, so someone else can take over. It is the first step toward data governance.

Without the second rule, the SME sees three revenue figures for the same period.

Before: three report pages show three revenue figures for January to September. Sales page: €1,312,400, duplicates counted, wrong. Leadership page: €1,498,680, VAT included, i.e. 1,248,900 × 1.2, wrong. Finance page: €1,248,900, excluding VAT, net of credit memos, correct. After: a single measure, Revenue (excl. VAT), defined as invoices issued, net of credit memos, excluding VAT, at the invoice date, feeds all three pages, which all display €1,248,900.Before: three report pages show three revenue figures for January to September. Sales page: €1,312,400, duplicates counted, wrong. Leadership page: €1,498,680, VAT included, i.e. 1,248,900 × 1.2, wrong. Finance page: €1,248,900, excluding VAT, net of credit memos, correct. After: a single measure, Revenue (excl. VAT), defined as invoices issued, net of credit memos, excluding VAT, at the invoice date, feeds all three pages, which all display €1,248,900.
Three pages, three rules, three numbers; one measure defined once, one number.

Only the Finance page figure is right: the Leadership page includes VAT (1,248,900 × 1.2), the Sales page counts the duplicates. Once the measure is written, its definition travels with it:

Revenue (excl. VAT) =
  SUM (
    'Invoice Lines'[Amount excl. VAT]
  )
Description: invoices issued,
net of credit memos, excluding VAT,
at the invoice date.

Markup % =
  DIVIDE (
    [Gross Profit],
    [Purchase Cost]
  )

Markup follows the same logic: you divide one total by another rather than averaging each row’s rate. Microsoft recommends this for ratios, and the KPI guide shows the gap in figures.

Microsoft writes that star schema design and its related concepts are “highly relevant to developing Power BI models that are optimized for performance and usability.” Facts and dimensions, splitting a flat table, a date table, star or snowflake: the technique is in The star schema in Power BI.

Why does Copilot need a good semantic model?

Copilot does not read your files: it queries the semantic model, its tables, relationships, measures and their names, then answers with what it finds there, right or wrong. A confused model gives confused answers, and no instruction given to the AI makes up for a wrong model.

Copilot in Power BI lets you ask a question in plain English and get an answer or a visual, for example: “What is revenue for the quarter by region?”

Microsoft is explicit: “Resolve modeling issues in the semantic model because additional instructions can’t correct inaccurate relationships or inappropriate aggregations.”

Copilot relies first on names and descriptions. Microsoft states that, to write its DAX queries, it reads only the first 200 characters of a description: the definition should start with the business meaning, the unit and the exclusions.

The same field, as Copilot sees it before and after, shows why.

Mock-up of two Data panes. Before: fields named MNT_NET, CA2, Measure 3 and CustNo, with no description; asked “Q3 revenue?”, Copilot answers with MNT_NET, a guessed field. After: the three amount fields are replaced by a single measure, Revenue (excl. VAT), whose description starts with the business meaning, the unit and the exclusions, whose first 200 characters Copilot reads; CustNo becomes Customer Number, next to the Customer field. Asked the same question, Copilot answers with the Revenue (excl. VAT) measure, the approved one.Mock-up of two Data panes. Before: fields named MNT_NET, CA2, Measure 3 and CustNo, with no description; asked “Q3 revenue?”, Copilot answers with MNT_NET, a guessed field. After: the three amount fields are replaced by a single measure, Revenue (excl. VAT), whose description starts with the business meaning, the unit and the exclusions, whose first 200 characters Copilot reads; CustNo becomes Customer Number, next to the Customer field. Asked the same question, Copilot answers with the Revenue (excl. VAT) measure, the approved one.
Faced with source codes, Copilot guesses; with business names and descriptions, it picks the right measure.

A Copilot-ready model has:

  • correct relationships and a star schema;
  • table, column and measure names in business language;
  • measures with descriptions, so that two similar questions give the same number;
  • defined permissions, because Copilot sees what the user sees, no more and no less (security and sharing);
  • a list of real questions from management, whose answers you already know, to test it before rolling it out to everyone.

On licensing, Copilot requires a paid capacity, Fabric F2 or higher, or Premium P1 or higher: a Pro license alone is not enough. The model, however, can be prepared today and serves your reports even if you never turn Copilot on. The full prerequisites are on the Copilot in Power BI page.

How to check your data model: a 10-point audit

A model is checked on ten points, from table grain to documentation, and the best return comes from reconciling three totals with the accounts. The table also works as an internal checklist.

PointWhat is checked
1. The grain of each tableWhat a row represents (an invoice line, an order, a month) is known and written down
2. The relationshipsSimple, with filters flowing from dimension tables to the fact table, with no unnecessary many-to-many relationships and never two possible paths between the same two tables
3. The reconciliationTwo or three totals from the model are compared with a reference: accounting, billing, payroll
4. The measuresEach key KPI is a single measure, named in business language, with a definition
5. The calendar tableA dedicated date table serves every comparison over time
6. Power QueryThe preparation steps are readable, with no file copies or hidden manual steps
7. PerformanceSlow visuals are measured with Performance Analyzer; the cause (model, DAX or Power Query) is found before optimizing
8. HousekeepingUnused columns, duplicates and technical fields are removed or hidden from readers
9. SecurityWho sees what is defined; row-level security is in place wherever a reader should see only their own scope
10. DocumentationSources, calculation rules and points to watch are written down

These ten points make up the model part of the Power BI and Excel audit.

Reconciliation, the test with the best return

Point 3 takes little time, because it does not require opening every measure: you compare three totals from the model with the accounts, and together they point to the cause. In the SME, the €63,500 gap comes with another clue.

Reconciliation table between the model and the accounts, January to September. Revenue (excl. VAT): €1,312,400 against €1,248,900, a variance of €63,500, or 5.1%: the symptom. Distinct invoice numbers: 1,812 on both sides, no extra invoice. Sum per invoice: 62 invoices total €127,000 in the model against €63,500 in the accounts, a variance of €63,500: the cause. Conclusion: 62 invoices are worth double and explain the whole variance; they are duplicates, not phantom sales.Reconciliation table between the model and the accounts, January to September. Revenue (excl. VAT): €1,312,400 against €1,248,900, a variance of €63,500, or 5.1%: the symptom. Distinct invoice numbers: 1,812 on both sides, no extra invoice. Sum per invoice: 62 invoices total €127,000 in the model against €63,500 in the accounts, a variance of €63,500: the cause. Conclusion: 62 invoices are worth double and explain the whole variance; they are duplicates, not phantom sales.
The same invoices, but 62 of them are worth double: the model counts duplicates, not phantom sales.

The model and the accounts count the same 1,812 invoices: none was invented. Counting rows would prove nothing, because a table at invoice-line grain normally has more rows than invoices. The deciding check compares, invoice by invoice, the model’s sum with the amount in the books: 62 invoices are worth double, and together they account for exactly the €63,500 gap. They are the ones that cover two orders. Had no invoice been off, you would have had to look elsewhere: a date filter, a VAT rule (included or excluded), a more up-to-date source.

The audit ends with a prioritized list: what skews the numbers first, then what slows things down, what prevents a handover, and what can wait. Sometimes fixing three measures is enough; sometimes the model has to be rebuilt. An audit should say so plainly.

When is the model not the problem?

A wrong number does not always come from the model: the source can be wrong, the business rule undecided, or the need too simple for a model. Better to know before paying for an audit.

  • The source is wrong. If sales are entered incorrectly in the software, even the best model will reproduce the error. Fix data entry first.
  • The rules have not been decided. If management has not decided whether revenue means invoices or orders, the issue is a decision, not a model.
  • One table, one reader. A small report on a single file needs no architecture; a well-kept spreadsheet may be enough. Our Power BI vs Excel comparison helps you decide.
  • The report is right but not read. The problem is then the design of the pages and how they are used in meetings: see the Power BI dashboard guide.

When a number is disputed, three questions are enough to know where to look.

Three-question decision tree. One: does the report total match the accounts for the same period? If yes, the model is not at fault: review the pages and how they are used. If not, two: does the source total match the accounts? If not, the source is at fault: fix data entry. If yes, three: is the calculation rule decided and written down? If not, it is a management decision. If yes, it is the model: grain, relationships or measure, the case of the example SME.Three-question decision tree. One: does the report total match the accounts for the same period? If yes, the model is not at fault: review the pages and how they are used. If not, two: does the source total match the accounts? If not, the source is at fault: fix data entry. If yes, three: is the calculation rule decided and written down? If not, it is a management decision. If yes, it is the model: grain, relationships or measure, the case of the example SME.
Source, rule, model: each gap has a single culprit, and reconciliation identifies it.

In the SME, the source and the rule were right: only the model remained at fault.

To choose who will build or take over your model, the Power BI consultant page compares freelancers, consultancies and IT services firms.

For the example SME, what comes next is simple: a reconciliation of the three totals, the grain brought down to the invoice line, a revenue measure written once. At the next management meeting, the report and the general ledger both show €1,248,900, and the meeting finally talks about sales.

Frequently asked questions

Why don’t my Power BI numbers match the accounts?

Most often, a table mixes two grains and counts some rows twice, like invoice F-2611 in the example. Other causes are possible: a different date filter or VAT rule (included or excluded), or one source more recent than the other. Compare the total with the accounts, then the number of distinct invoice numbers, then the sum invoice by invoice: the reconciliation method points to the cause.

What language does Power BI use?

Power BI uses two languages. M, in Power Query, prepares and cleans the data at load time. DAX calculates the measures in the model: totals, ratios, year-to-date figures, comparisons with the previous year. An executive does not need to read either; they only need to insist that every KPI has a written definition in plain language.

What is the difference between Power Query and Power BI?

Power Query is the preparation step inside Power BI: it connects to the sources, cleans and shapes the tables before they are loaded. The model starts where Power Query stops: relationships and DAX measures. What is fixed row by row belongs in Power Query; what is calculated according to the report’s filters is written as a measure. How the tool works is covered on the Power Query page.

What are the drawbacks of Power BI?

Four drawbacks come up often: report building on Windows only, a license per reader, limits on Pro, and no warning about duplicates. Every reader needs a Pro license until the company has a Fabric F64 capacity. On a Pro license, a model is limited to 1 GB and 8 scheduled refreshes a day. Finally, Power BI shows no error message when a model counts rows twice: the most underestimated drawback. The full comparison is in the drawbacks of Power BI versus Excel.

Do you always need a star schema?

It is the starting point Microsoft recommends for Power BI, because it makes filters predictable and measures simple. A small report on a single table can do without it. The exceptions are covered in our article on the star schema.

Let’s talk about your reporting.

A 30-minute video call with Dylan Arnaud. You come away with a clear scope and a fixed price.

Dylan Arnaud, Power BI consultant and founder of Datafuji
Dylan ArnaudFounder · your single point of contact