Skip to main content

Semantic Layer vs Metrics Layer: Where the Terms Diverge

Emily Winks, Data Governance Expert, Atlan
Data Governance Expert
Updated:09/10/2026
|
Published:09/10/2026
14 min read

Key takeaways

  • A metrics layer standardizes KPI calculation logic; a semantic layer also covers entities, hierarchies, and access policy.
  • dbt's docs treat the metrics layer as one piece MetricFlow powers inside the broader Semantic Layer, not a rival product.
  • An AI agent needs entity meaning and access policy too, not just the metric formulas alone a BI query resolves.

Semantic layer vs metrics layer: what's the difference?

A metrics layer standardizes how KPIs are calculated: revenue, churn, active users, one formula per metric, served through an API instead of copy-pasted SQL. A semantic layer covers more ground: it defines those same metrics plus the entities, dimensions, relationships, and access rules that give the metrics context. Every metrics layer does semantic-layer work at a smaller scale; not every semantic layer is a metrics layer, since most also model things a KPI formula never touches. AI agents typically need the wider layer, not the narrower one.

Key distinction

  • Metrics layer — narrow: KPI formulas, filters, and time grains, served through an API
  • Semantic layer — broad: metrics plus entities, dimensions, relationships, and access policy
  • dbt's own framing — MetricFlow is the engine inside the Semantic Layer; a metrics layer is a component, not a competitor
  • What an AI agent needs — the full semantic layer; a metrics layer alone leaves entity meaning and access rules undefined

See where your stack sits today

Assess Context Maturity

Semantic layer and metrics layer get used as if they were the same purchase, and vendors have not made this easier: dbt called its metric-definition tool a “Semantic Layer” in 2022, and the label stuck even as the scope stayed narrower than a full semantic layer. The two terms overlap, but they are not identical in scope. A metrics layer standardizes how a KPI gets calculated. A semantic layer standardizes that plus what the underlying entities mean, how they relate, and who can see them. The distinction matters more once an AI agent, not a dashboard, is the one asking.

Dimension Metrics layer Semantic layer
What it is A framework for standardizing metric calculation logic A governed translation layer between raw data and business meaning
Scope Measures: formulas, filters, time grains Measures plus entities, dimensions, hierarchies, relationships, and access policy
Origin term “Metric store” / “headless BI” Business intelligence semantics, now extended to AI grounding
Who maintains it Analytics engineers Data and analytics teams jointly
Typical tools dbt Semantic Layer (MetricFlow), legacy dbt Metrics Cube, AtScale, LookML, Atlan’s Enterprise Data Graph
Query interface SQL generated from a metric API SQL, JDBC, GraphQL, or MCP, depending on the platform
Relationship to the other A narrower, calculation-focused subset The broader category a metrics layer sits inside
Best for Resolving “why does revenue differ across dashboards” Resolving that plus “what counts as an active customer” and “who can see this field”

Semantic layer vs metrics layer: what’s the difference?

The scope difference is the whole story. A metrics layer answers one question well: given a metric name, what is the exact formula, and which filters and time grain apply. A semantic layer answers a wider set: what a metric means, what entity it belongs to, how that entity relates to others, and who is allowed to query it at all.

Cube’s own definition draws this line directly: a semantic layer sits between data sources and every consumer, defining metrics, dimensions, join paths, and access rules once, while a narrower “metrics layer” reading of the same pattern covers the measure-centric slice of it. AtScale takes a related position from the other direction, arguing that “metric store” and “metric layer” as labels ignore dimensions altogether, which is exactly the gap a semantic layer is built to close.

dbt Labs is the source of most of the confusion, and also the clearest admission of it. dbt’s developer docs describe the dbt Semantic Layer as the offering that lets teams “centrally define their metrics,” powered by MetricFlow, the engine that replaced the older, now-deprecated dbt Metrics package[1]. That is a metrics layer’s job description, even though “Semantic Layer” is the product name. A widely cited framing of this gap uses a spreadsheet analogy: the metrics layer is the formulas, the semantic layer is the entire workbook, formulas, column headers, sheet labels, and sharing permissions together[2].


What is a semantic layer?

A semantic layer is a governed translation layer between raw data and the people and systems that consume it. It maps technical fields to approved business definitions, so a dashboard, a notebook, and an AI agent resolve “revenue” or “active customer” to the same answer every time. Forrester found 61% of enterprises run four or more BI platforms, each capable of maintaining its own metric logic; a semantic layer is the mechanism that keeps that fragmentation from becoming a different number in every tool.

Scope is what separates a semantic layer from a metrics layer, and from an ontology too: a semantic layer resolves both metrics and the entities and relationships those metrics depend on, where an ontology resolves entity meaning alone, without the metric math. Cube and AtScale market themselves squarely as semantic layers for this reason, covering joins and hierarchies that a metrics-only tool leaves to whoever writes the next query. LookML is a semantic layer scoped to one BI tool, which is a different tradeoff than a universal layer serving every consumer, including full-stack AI platforms built on top of it. A semantic layer is not the same pairing as context layer vs semantic layer, where the second half of that comparison is agent-facing governance, not metric math at all.

Core components of a semantic layer


  • Metric definitions: formulas, filters, and time grains, the same territory a metrics layer covers on its own
  • Entity and dimension models: what a “customer” or “account” is, and how it relates to other entities
  • Join logic: pre-defined relationships between tables, so consumers stop re-deriving them independently
  • Access policy: row- and column-level rules governing who, or which agent, can see what, the same access-versus-meaning split semantic understanding vs metadata management draws out on the catalog side
  • A business glossary: the human-readable layer of definitions the semantic layer enforces at query time, per semantic layer vs data catalog

What is a metrics layer?

A metrics layer, also called a metric store or headless BI, is a framework for centralizing how an organization calculates its KPIs. It is the single source of truth for metric formulas: revenue, churn, active users, one definition per metric, exposed through an API rather than copy-pasted SQL scattered across dashboards.

The term traces to a real, specific engineering problem. Before a metrics layer existed, “count active users” meant something slightly different in every dashboard, because the filters, the exclusions, and the time window each lived inside a separate query nobody centrally owned. dbt’s Semantic Layer, running on MetricFlow, solved that problem for dbt shops; Cube’s semantic layer and Lightdash solved adjacent versions of it. All three get called metrics layers or semantic layers depending on who is writing the marketing copy, which is precisely the vocabulary problem this page exists to untangle.

A metrics layer’s ceiling shows up fast once dimensions and relationships enter the conversation. Defining “revenue” solves nothing if every consumer still joins customer to account differently, because a metrics layer, narrowly construed, does not own that join logic. That gap is why semantic layer vs traditional data marts frames the metrics layer as a subset, never the finish line, the same subset-versus-whole shape recurring in data catalog vs context layer.

Core components of a metrics layer


  • Metric formulas: the calculation logic for each KPI, expressed once and reused everywhere
  • Filters and time grains: the conditions that turn a raw aggregate into “active users this month”
  • A query API: the interface BI tools, notebooks, and increasingly agents call instead of writing raw SQL
  • Version control: metric definitions tracked as code, so a change is reviewed, not silently overwritten

The AI Context Stack

A practical brief on what enterprise AI actually needs beyond metric definitions, from entity meaning to governed access.

Get the Context Stack

Semantic layer vs metrics layer: head-to-head

Both exist to stop the same failure mode, a metric that returns a different number depending on who asks. They diverge on how much else they take responsibility for once that problem is solved.

Dimension Metrics layer Semantic layer
Primary focus Consistent KPI calculation Consistent meaning across metrics, entities, and relationships
Governance scope Metric-definition ownership and version control Metric, entity, and access-policy ownership
Who it serves well alone A single team disputing five to twenty metric definitions Multiple teams, tools, and personas sharing one data estate
What it leaves unresolved Entity meaning, join paths, and row-level access Nothing structural; implementation quality varies, scope does not
Failure mode Correct formulas joined inconsistently by every downstream consumer A broader scope implemented shallowly, with owners undefined
AI-agent readiness Grounds metric math; leaves entity and access questions to the agent Grounds metric math, entity meaning, and access together
Representative tools dbt Semantic Layer (MetricFlow), legacy headless-BI stores Cube, AtScale, LookML, Atlan’s Enterprise Data Graph

Example: the “active customer” problem a metrics layer alone cannot close. A metrics layer can guarantee that “active customer count” always runs the same SQL. It cannot guarantee that “customer” means the same account entity in the billing system, the CRM, and the support tool feeding that query, because entity resolution sits outside a metrics layer’s stated scope. Research on why AI agents fail in production points to exactly this gap: an agent that gets a correct formula applied to the wrong entity produces a confident, wrong answer, not an error it can catch.


Do you need both a semantic layer and a metrics layer?

Not both as separate purchases, in most enterprise stacks. A metrics layer is a component a full semantic layer already contains, per dbt’s own product framing, not an independent system to run alongside one.

How they work together


Teams that already run dbt’s Semantic Layer are running a metrics layer with a semantic-layer label attached. Extending it into a full semantic layer means adding entity models, join logic, and access policy on top of the metric definitions already in place, which is the same expansion context layer vs data catalog vs semantic layer walks through for the catalog side of the same question.

Unity Catalog’s semantic layer and Cube both start from the metrics-and-dimensions end and grow toward broader coverage as teams add relationships and policy. Which layer an agent should call is really a question of consumer, not vendor, the split semantic layer for BI vs semantic layer for AI agents explores in more depth than this comparison needs. The direction of travel is consistent across vendors: start narrow with disputed metrics, then widen the definition until entities and access are governed too, not just the formulas.


When should you add a semantic layer on top of a metrics layer?

The right moment depends on how many questions your metric definitions still leave open once the KPI math itself is settled.

Stay with a metrics layer alone when the only live problem is inconsistent KPI calculation across BI tools, one team owns both the definitions and the entities behind them, and no AI agent is querying the data unsupervised.

Extend into a full semantic layer when more than one team or system disagrees about what an entity means, access needs to vary by role rather than by tool, or an AI agent needs to resolve “what is a customer” as confidently as it resolves “what is revenue.”

Skip straight to a semantic layer, rather than starting with metrics alone, when AI agents are already part of the roadmap. Why AI agents need an enterprise context layer makes the same case one level up: retrofitting entity and access governance onto a metrics-only layer after three teams depend on it costs more than building the wider scope first.

Context Gap Calculator

Find out how much of your metric and entity definitions actually reach your AI agents today, and where the gap sits.

Calculate Your Gap

How Atlan approaches semantic layers and metrics layers

Teams that stop at a metrics layer tend to solve the metric-consistency problem and then discover the same argument recurring one level up, this time about entities instead of formulas: what “customer” means, who owns that definition, which agent may retrieve it. A metrics layer was never scoped to answer that, and treating it as if it were is how “revenue” gets fixed while “active customer” stays contested.

Atlan’s Enterprise Data Graph sits above whichever metrics or semantic tooling a team already runs, dbt’s Semantic Layer, Cube, LookML, or a homegrown metric store, and connects business glossary terms, entity relationships, lineage, and access policy into one governed graph. MCP delivers that governed context to agents the same way regardless of which metrics tool sits underneath, the same pattern MCP delivers business context and how to implement an enterprise context layer for AI both walk through in more depth than this comparison needs.

This is not a case for replacing a metrics layer already in production. Metric formulas that already resolve consistently stay exactly as they are; what a context layer adds is the entity meaning, active ontology, and ownership tracking a metrics layer was never built to carry. In Atlan’s AI Labs benchmark, adding that governed context improved AI’s text-to-SQL accuracy by 38%, measured independently of which metrics tool produced the underlying formulas. Teams weighing active metadata against a context layer more broadly are answering a version of the same question this page answers for metrics specifically: how much governance sits above the raw calculation.

AI Agent Context Readiness Checklist

Run through the checklist enterprise teams use to find where metric definitions stop and entity governance gaps begin.

Check Your Readiness

The vocabulary question neither term settles on its own

“Semantic layer” and “metrics layer” will keep getting used interchangeably, because the market that named them has not settled on consistent boundaries either. What holds regardless of which label a vendor prints on the product page: a metrics layer standardizes calculation, and a semantic layer standardizes calculation plus meaning and access. An AI agent depending on either one needs to know which scope it is actually getting, not which word appears in the pitch deck, the same practical test do enterprises need a context layer applies one level up, to the whole stack rather than one term in it.


FAQs about semantic layer vs metrics layer

  1. What is the difference between a semantic layer and a metrics layer?
    A metrics layer standardizes how a KPI is calculated: the formula, the filters, the time grain, served through an API so every tool gets the same number. A semantic layer covers that plus entity definitions, dimensions, join paths, and access policy. A metrics layer is a component of a semantic layer, not a separate category.

  2. Is a metrics layer the same thing as a semantic layer?
    No, though the terms get used interchangeably. A metrics layer is narrower by design: it defines measures, not the entities or relationships those measures depend on. A semantic layer includes metric logic and adds the business meaning, hierarchy, and governance a metric alone does not carry.

  3. Does dbt’s Semantic Layer count as a full semantic layer or just a metrics layer?
    Both, depending on scope. MetricFlow, the engine behind dbt’s Semantic Layer, started as a metrics-definition tool and still centers on metric logic. dbt’s own documentation frames it as part of a broader semantic layer, not a competing term, which is the same relationship this page argues for.

  4. Which one does an AI agent actually need?
    The full semantic layer, in most cases. An agent answering “what is an active customer” or deciding whether it can see a field needs entity definitions and access policy, not just a revenue formula. A metrics layer alone leaves those questions unanswered at the moment the agent needs them.

  5. When is a metrics layer alone enough?
    When the only unsolved problem is inconsistent KPI math across BI tools, and entities, joins, and access are already handled elsewhere or trivial enough not to matter. A single-warehouse team with a handful of disputed metrics and no AI agent in the loop can stop at a metrics layer.

  6. How does a context layer relate to both a semantic layer and a metrics layer?
    A context layer sits above both. It ingests whatever metric and entity definitions a semantic or metrics layer already holds and adds lineage, ownership, and policy at the moment an agent retrieves them, delivered through a protocol like MCP rather than a query language.


Sources

  1. dbt Semantic Layer FAQs, dbt Developer Hub
  2. Semantic Layer vs. Metrics Layer: What’s the Difference?, DEV Community (Alex Merced)
  3. What Is a Semantic Layer?, Cube
  4. What is a Semantic Layer? Definition, Benefits, Types & More, AtScale
  5. The BI Fabric Baby Is Slowly But Surely Growing Up, Forrester (Boris Evelson)
  6. dbt Semantic Layer, dbt Developer Hub
  7. Model Context Protocol

Share this article

signoff-panel-logo

Atlan is the Context Layer for AI. It translates business knowledge, including data definitions, working procedures, and governance policies, into context AI can actually use. This knowledge lives in a single Enterprise Data Graph that every team and AI agent can reach.

In Atlan's AI Labs benchmark, adding this context improved AI's text-to-SQL accuracy by 38%.

Atlan is recognized as a Leader across multiple Gartner reports and Forrester Waves, and is trusted by over 400 enterprises representing $10T+ in market cap, including Mastercard, Workday, General Motors, CME Group, HubSpot, FOX, Virgin Media O2, and Elastic.

Bridge the context gap.
Ship AI that works.