Why your AI gets the numbers wrong, and do you need a semantic layer?
Three versions of "revenue" and a fourth from Copilot. Why AI invents numbers, what a semantic layer fixes, and a five-question test for whether you need one.
Stage 2 of 5: Ground
A semantic layer is a single, governed place where your business defines what its numbers mean, so every dashboard, spreadsheet and AI agent calculates revenue, margin or churn the same way. We build it in whichever tool fits what you already run, usually Power BI, dbt or a warehouse-native layer, so AI picks from agreed definitions instead of guessing.
Last updated

AI-ready data is data that is findable, defined, trustworthy, traceable, connected, protected and owned for the specific questions AI will be asked.
More on AI-ready data in our glossaryA semantic layer is a governed set of business definitions: what counts as “revenue”, “active customer” or “churn”, how the underlying tables join, and who’s allowed to see what, held in one place instead of copied into every report and every AI prompt. Every dashboard, spreadsheet and AI agent then asks for “revenue” by name and gets back the agreed figure, rather than each one writing its own SQL and quietly disagreeing. Cube, one of the vendors in this space, puts the distinction well: text-to-SQL is an access mechanism, while a semantic layer is a layer of understanding.
Cube’s own analysis names three ways an AI agent fails once it’s let loose on raw tables. Metric drift, where “revenue” gets interpreted differently from one session to the next. Join-graph traps, where a fan-out join silently double-counts a figure without anyone noticing. And no access control, because a correct query and one that exposes another team’s data look identical to a language model with no boundaries drawn for it. None of these are model problems; they’re the predictable result of asking AI to reconstruct meaning that was never written down.
A dbt Labs benchmark, re-run in April 2026 against an 11-question insurance dataset with current-generation models, found raw text-to-SQL on unmodelled data had improved from 32.7% accuracy in 2023 to 64.5% by 2026: a real gain, but not the number that matters for this decision. Once the same questions were run against data that had already been modelled, text-to-SQL scored 84 to 90%; against a semantic layer, those modelled questions reached 98.2 to 100%. That modelled-to-modelled gap, roughly ten points, is the honest comparison, not the gap against the unmodelled 64.5% baseline. A separate study in April 2026 found a compact, four-kilobyte semantic document added 17 to 23 percentage points of accuracy across several current models, converging around 68% with it against 45 to 50% without, a bigger swing than which model was used. The lesson holds regardless of which AI you pick: your answers are only as consistent as your definitions.
The more useful question isn’t which architecture is theoretically best, but who will keep it current. Analysts at Tasman Analytics argue a semantic layer that’s two months behind reality is worse than one that’s messy but current, and recommend most 50-to-400-person companies build it inside the BI tool their analytics team already opens every day, reaching for a separate tool like dbt only once several downstream systems genuinely need to share the same metrics. Our default follows the same logic: if you’re on Power BI, build the certified semantic model first and expose it to Copilot and Fabric data agents before considering anything heavier.
We start by agreeing the roughly twenty numbers the business runs on, each written down in plain English with a named owner, sometimes called the twenty numbers method. We model those in whichever tool fits what you already run, add AI instructions and verified answers where the platform supports them, and test the result against a set of your own real questions, before and after, so the improvement is measured rather than assumed.
Definitions written into one vendor’s proprietary format are a lock-in risk few businesses notice until they want to leave. Where we can, we keep definitions in plain, version-controlled files, and MetricFlow, the metrics engine behind dbt’s semantic layer, has been open source under Apache 2.0 since October 2025. A newer vendor-neutral specification, Apache Ossie, aims to make moving between tools an export rather than a rewrite, though as of mid-2026 no product ships native support for it yet, so we treat it as a direction to keep definitions compatible with, not something to build on today.
Agree the numbers that matter
We work through the twenty or so figures the business actually runs on, in plain English, with an owner named for each.
Model it in the tool you already run
Usually a Power BI semantic model, dbt MetricFlow, a Snowflake semantic view or a Databricks metric view, whichever fits your stack.
Add AI instructions and verified answers
So Copilot, a Fabric data agent or another assistant picks from your definitions instead of guessing at joins.
Test against real questions, then hand over
We measure accuracy on your own question set before and after, and hand over documentation your team can extend.
| Rule | What it means here |
|---|---|
| Access rules travel with the definition | Row-level security and who's allowed to see which figures are defined alongside the metric itself, so AI can't answer around a permission it should respect. |
| Best fit | AI and agent access | |
|---|---|---|
| Power BI semantic model (Fabric) | Most UK SMEs and mid-market firms already on Microsoft 365 | Copilot, Fabric data agents, Fabric IQ MCP (read-only) |
| dbt Semantic Layer / MetricFlow | Teams already on dbt with several downstream tools reading the same metrics | The dbt MCP server's Semantic Layer and Discovery toolsets |
| Cube | Embedded analytics and product teams serving metrics into several apps | MCP, SQL, REST and GraphQL APIs, so agents pick certified measures |
| Snowflake or Databricks native layer | Estates already centred on that warehouse | A platform-managed MCP server that inherits the warehouse's own permissions |
Three versions of "revenue" and a fourth from Copilot. Why AI invents numbers, what a semantic layer fixes, and a five-question test for whether you need one.
Terms used on this page
A semantic layer is a single, governed place where your business defines what its numbers mean, so every report and AI tool calculates them the same way. You need one if people argue about figures, or if AI gives inconsistent numbers to the same question; if that's not happening yet, you probably don't.
Without agreed definitions, AI has to guess which tables, joins and filters you mean, and it guesses differently each time. In dbt Labs' April 2026 benchmark, giving it a semantic layer to pick from instead of raw tables raised accuracy on modelled questions from 84 to 90%, up to 98 to 100%.
Usually not. The best place for a semantic layer is normally inside the BI tool your analytics team already uses every day, kept current, rather than a second parallel layer nobody maintains. We'd only recommend dbt or a warehouse-native layer if several downstream tools genuinely need to share the same metrics.
Usually, yes. A certified Power BI semantic model, Prep-for-AI features, Fabric data agents and Copilot Studio cover most needs without a new platform. We'll tell you plainly if a heavier setup like Microsoft Fabric would actually help, and if it wouldn't yet.
We lean on open standards where they exist, including MetricFlow, which is Apache 2.0, and keep definitions in plain, version-controlled files rather than a vendor's proprietary format. Moving platforms later should be an export, not a rebuild from scratch.
A first domain is usually usable in 3 to 4 weeks, with the full build at 4 to 8 weeks depending on scope. Definitions drift as the business changes, so we offer a light monthly retainer, Keep it true, for teams who want it re-tested and kept current after handover.