GTM Engineering term, data infrastructure

Semantic layer

A semantic layer is a layer of definitions between raw data and the tools that use it, defining metrics, dimensions and joins once so every report, spreadsheet and AI assistant calculates them the same way.

Also called: metrics layer, headless BI, metric store

Semantic layer sits under every stage: it's part of the data and systems the whole funnel runs on, near related terms like Data warehouse, dbt and Single source of truth (the blue squares).

A semantic layer is a set of shared definitions that sits between raw warehouse data and the tools that read it. It defines metrics like ARR, pipeline and NRR, plus the dimensions and joins behind them, once, so every dashboard, spreadsheet and AI assistant calculates them the same way. It ends the meeting where marketing, sales and finance bring three different pipeline numbers.

How it works

Without a semantic layer, every tool calculates metrics its own way. A BI dashboard computes pipeline with one filter, a finance spreadsheet uses another and an analyst's ad hoc query uses a third.

A semantic layer centralizes the logic:

  1. Models: clean tables in the data warehouse, often built with dbt.
  2. Definitions: metrics written in code or config, such as pipeline = sum(amount) where stage in (qualified, proposal, negotiation) and is_deleted = false.
  3. Dimensions: the ways you can slice metrics, such as segment, region, source and month, with the joins defined once.
  4. Consumers: BI tools, spreadsheets, notebooks and AI agents query the layer, which generates the SQL.

Each KPI gets one definition, one owner and a version history. Change the definition in one place and every consumer picks it up. It is the practical way to build a single source of truth, and it supports data governance by controlling who can see which metrics.

Example

Say three teams report quarterly pipeline:

  • Marketing's dashboard counts all open opportunities created this quarter: $5.2M.
  • Sales counts opportunities in qualified stages or later, any create date: $4.1M.
  • Finance excludes renewals and applies the latest amount only: $3.6M.

Leadership spends 30 minutes of every QBR reconciling. The data team defines "new business pipeline" in the semantic layer: open, stage qualified or later, type new business, current amount. That number is $3.8M, and it now appears on the revenue operations dashboard, in the board deck and in answers from the AI assistant. Assumption: five leaders save 30 minutes a week of reconciliation, about 130 hours a year, and the forecast conversation shifts from "whose number is right" to "how do we close the gap."

When it matters and when it doesn't

It matters once more than one team or tool reports the same metric, once you report to a board or investors, and once AI tools start answering data questions. It matters less for a five-person company where one person owns all reporting in one tool.

Common mistakes

  • Buying a semantic layer tool before agreeing on metric definitions as a team.
  • Defining metrics in the layer but letting old dashboards keep their own logic.
  • Skipping owners, so nobody approves changes to core definitions.
  • Pointing AI assistants at raw tables instead of governed metrics.
  • Defining so many near-duplicate metrics that the layer becomes as confusing as before.

FAQ

What are examples of semantic layer tools?

Options include the dbt Semantic Layer, Cube, LookML in Looker and AtScale, among others. Several warehouses and BI tools also offer their own metric definition features.

Why does a semantic layer matter for AI?

When an AI assistant writes SQL directly against raw tables, it has to guess how metrics are defined and often guesses wrong. A semantic layer gives it governed definitions to query, so its answers match the numbers on your dashboards.

Do small teams need a semantic layer?

Not always as a separate tool. A small team can get most of the benefit by defining core metrics once in dbt models or a shared, documented BI layer. The principle matters more than the product: one definition per metric, reused everywhere.

See all data infrastructure terms ↳

Used in these articles