Posted in Data Infrastructure & Analytics Engineering

Semantic Layer & Metrics Layer Tools Compared in 2026: Cube vs dbt Semantic Layer vs AtScale

Ask three different BI tools for “monthly active revenue” and it’s entirely possible you’ll get three different numbers. One dashboard excludes refunds, another counts them, a spreadsheet uses a stale join — and now a board meeting stalls on reconciling spreadsheets instead of making a decision. This is the problem a semantic layer (sometimes called a metrics layer) is built to solve: define a metric’s logic once, in one governed place, and let every BI tool, notebook, spreadsheet, or AI agent that queries it get the same answer.

In this comparison we look at three of the best-known players in this space: Cube (the open-source Cube Core engine and its commercial Cube Cloud platform), the dbt Semantic Layer (powered by dbt Labs’ open-source MetricFlow engine), and AtScale‘s Universal Semantic Layer. All three sit between your data warehouse and the tools people actually use to look at numbers. We’re deliberately not covering pricing here — plans, tiers, and packaging change often enough that they deserve their own research — and we’re keeping the focus on the metrics/semantic layer itself, not on ETL or data-transformation tooling (dbt’s transformation layer is covered separately in our ETL/ELT roundup).

At a Glance

PlatformBest ForDeployment ModelKey CapabilitiesNotable Integrations
CubeTeams that want an open-source, embeddable semantic layer with flexible query APIs across many data warehousesCube Core (self-hosted, Apache 2.0, Docker) or Cube Cloud (managed, adds AI/analytics features)YAML/JavaScript data modeling with cubes and views, pre-aggregations (cached rollups via Cube Store), row-level and member-level securitySQL API, REST API, GraphQL API, MDX/DAX; Amazon QuickSight, Looker Studio, Metabase, Sigma, ThoughtSpot, Excel, Google Sheets, Jupyter
dbt Semantic Layer (MetricFlow)Teams already standardized on dbt who want metrics defined as code next to their transformation logicMetricFlow engine is open-source (Apache 2.0); querying the Semantic Layer in production requires a dbt Cloud planYAML semantic models and five metric types (simple, ratio, derived, cumulative, conversion); semantic-graph join resolution that avoids fan-out joins; result and declarative cachingJDBC, GraphQL, Python SDK, Arrow Flight SQL; Tableau, Power BI, Google Sheets, Excel, Hex, Mode, Klipfolio PowerMetrics, Omni
AtScaleEnterprises standardized on Excel, Power BI, and/or Tableau that need one governed metric layer with warehouse-native query accelerationAtScale Enterprise (multi-warehouse: Snowflake, Databricks, BigQuery, Redshift, Azure) or AtScale for Snowflake (runs natively inside Snowflake)AI Computation Engine (ACE) for in-warehouse calculation; aggregate-aware query rewriting with demand-based, predictive, and user-defined aggregates; XMLA endpointSQL over ODBC/JDBC, MDX/DAX over XMLA, Python, REST; Excel, Power BI, Tableau, Looker, Jupyter

Short Verdict

There isn’t a single “best” semantic layer because the three tools optimize for different starting points. Cube is the most flexible choice if you want an open-source core you can self-host and extend, with the widest spread of lightweight query protocols (SQL, REST, GraphQL, MDX, DAX). The dbt Semantic Layer is the natural choice if your transformation logic already lives in dbt and you want metrics to live right next to those models as version-controlled code. AtScale leans hardest into the “universal” promise for classic enterprise BI — Excel, Power BI, and Tableau specifically — by presenting itself as a virtual cube that those tools already know how to talk to (SSAS/XMLA), while pushing calculation work back down into the warehouse.

What It Is

A semantic layer (also called a metrics layer, or headless BI) is a governed modeling layer that sits between raw tables in a data warehouse and the people or tools that query them. Instead of every BI dashboard, spreadsheet, and notebook re-deriving “net revenue” or “active customers” from scratch — each with slightly different joins, filters, or exclusions — the definition is written once, as versioned configuration (usually YAML), and every downstream consumer queries that same governed metric. This matters for a specific, recurring failure mode often called metric drift: the same named metric quietly diverging across tools until someone notices the numbers in two decks don’t match. A semantic layer doesn’t guarantee clean source data or organizational agreement on what a metric should mean, but it does guarantee that once a definition is agreed on, every tool that plugs into the layer inherits it — and when the definition changes, it changes everywhere at once instead of requiring someone to hunt down and update five different dashboards.

This is also a distinct layer from the ETL/ELT and transformation tooling that loads and cleans data in the warehouse in the first place (Fivetran, Airbyte, and dbt’s own transformation layer, which we cover separately). A semantic layer typically sits on top of already-modeled warehouse tables; its job is defining and serving business metrics consistently, not moving or cleaning raw data.

How It Works / Key Features

Cube models business entities as “cubes” with measures, dimensions, and joins, written in YAML or JavaScript and stored in git, with curated “views” layered on top for consumers. Access policies (row-level security, member-level security, data masking) are scoped to user groups and attributes. On the query side, Cube exposes a notably wide surface: a Postgres-compatible SQL API (including a MEASURE function for ad-hoc calculations on governed metrics), a REST (JSON) API and a GraphQL API for embedded and real-time analytics, and MDX and DAX support for tools that expect those protocols. For performance, Cube uses pre-aggregations — rollup tables declared directly in the data model — which Cube refreshes in the background, stores in its own Cube Store, and automatically routes matching queries to. Cube Core is the open-source engine (Apache 2.0, distributed as Docker images you run yourself); Cube Cloud is the managed commercial product built on the same core, adding an AI-assisted modeling experience, an analytics chat interface, workbooks, dashboards, and an MCP server so AI agents in tools like Claude, ChatGPT, or Cursor can query governed metrics directly. Cube documents native connectors for data-exploration and spreadsheet tools such as Amazon QuickSight, Looker Studio, Metabase, Sigma, ThoughtSpot, Google Sheets, and Excel, plus notebook environments like Jupyter and Hex, and notes that other SQL-speaking BI tools can typically connect through the SQL API even without a dedicated connector.

The dbt Semantic Layer is powered by MetricFlow, dbt Labs’ open-source (Apache 2.0) metric-compilation engine. Metrics are defined in YAML as “semantic models” that map to existing dbt models, each carrying entities (join keys), dimensions (ways to slice a metric, like time or category), and simple metrics (direct aggregations of a column). MetricFlow then organizes these into a semantic graph — tables as nodes, entity join keys as edges — and supports five metric types: simple, ratio (e.g., revenue per customer), derived (metrics built from other metrics), cumulative (aggregated over a window), and conversion (tracking a base event followed by a conversion event). Because joins are resolved from typed entity keys rather than hand-written SQL, MetricFlow is designed to avoid fan-out and chasm-join errors when it compiles a metric request into SQL. On the query side, the Semantic Layer exposes a JDBC API, a GraphQL API, a Python SDK, and support for the Arrow Flight SQL JDBC driver, plus “Exports” that write common queries directly into the warehouse on a schedule. Two caching mechanisms — result caching and declarative caching — are documented to reduce repeat query computation. Documented downstream integrations include Power BI, Tableau, Google Sheets, Microsoft Excel, Hex, Mode, Omni, Klipfolio PowerMetrics, and Sigma (in preview), alongside a dbt MCP server for AI assistants. Note that while MetricFlow itself is open source, querying it in production as “the dbt Semantic Layer” is a feature of paid dbt Cloud plans.

AtScale takes a different architectural approach: rather than exporting data or requiring a separate query engine, it positions itself as a virtual, governed layer that translates incoming queries into physical queries against your existing warehouse, computing results in place via what AtScale calls its AI Computation Engine (ACE). Metrics and dimensions are defined once in a semantic model, governed with versioning and rollback, and existing warehouse permissions carry through. AtScale accepts queries in several native protocols: SQL over ODBC/JDBC (where it presents itself as a PostgreSQL-compatible source), MDX and DAX over an XMLA endpoint (where it presents itself as a SQL Server Analysis Services cube), a Python interface for notebooks, and REST for custom applications. Its caching model is “aggregate-aware” rather than a simple rollup cache: AtScale automatically builds and maintains aggregate tables inside the underlying warehouse itself, using three strategies — demand-based (built from observed query patterns), predictive (built proactively from the model design), and user-defined (specified explicitly by modelers) — refreshable on a schedule, a file trigger, or via the REST API. AtScale ships as AtScale Enterprise, deployable against Snowflake, Databricks, BigQuery, Redshift, or Azure, and as AtScale for Snowflake, which runs natively inside Snowflake and also serves as the engine behind Snowflake’s own Semantic Views XMLA endpoint. Because its primary query protocols mirror what Microsoft’s and Tableau’s stacks already expect, AtScale documents particularly deep support for Excel (via the built-in SSAS connector), Power BI (Live mode via XMLA/DAX), Tableau (via Thrift SQL, requiring an additional Hive or PostgreSQL driver), and Looker (also via Thrift SQL), plus Jupyter via its Python interface and MCP support for AI assistants such as Claude and ChatGPT.

As a concrete illustration of how metric logic is actually declared in this category, here’s a simplified MetricFlow-style example of a ratio metric built from two simple metrics (adapted from dbt’s own documentation):

semantic_models:
  - name: orders_semantic_model
    model: ref('orders')
    entities:
      - name: customer
        type: foreign
    measures:
      - name: order_total
        agg: sum
        expr: order_total

metrics:
  - name: food_revenue
    type: simple
    type_params:
      measure: order_total
      filter: "{{ Dimension('is_food_order') }} = true"

  - name: food_revenue_per_customer
    type: ratio
    type_params:
      numerator: food_revenue
      denominator: total_customers

The same underlying idea — write the business logic once, as structured configuration, and let the engine resolve joins and aggregation — holds across Cube’s cube/view YAML and AtScale’s semantic model definitions, even though the surface syntax differs.

Pros

  • Cube: Genuinely open-source core (Apache 2.0) you can self-host for free, with the broadest native query-protocol spread (SQL, REST, GraphQL, MDX, DAX) and data models that are explicitly portable between self-hosted Cube Core and managed Cube Cloud.
  • dbt Semantic Layer: Metrics live as version-controlled YAML right beside the dbt models they’re built on, so metric logic benefits from the same git-based review, testing, and CI workflow data teams already use for transformations.
  • AtScale: Query acceleration happens inside your own warehouse via aggregate tables under existing security controls, and its MDX/DAX/XMLA support lets Excel and Power BI connect using connectors they already ship with, rather than a custom driver.

Cons

  • Cube: Documented native BI connectors skew toward modern/embedded tools (QuickSight, Metabase, Sigma, ThoughtSpot); classic enterprise tools like Tableau or Power BI aren’t in Cube’s own documented integrations list and would rely on generic SQL API connectivity.
  • dbt Semantic Layer: Production use of the Semantic Layer’s query-serving APIs requires a dbt Cloud plan, and it’s most naturally suited to teams whose transformation logic is already built in dbt — adopting it as a standalone layer on top of a non-dbt warehouse is a bigger lift.
  • AtScale: Full-featured BI support is concentrated in Excel, Power BI, Tableau, and Looker; some other tools (MicroStrategy, Business Objects, Cognos, Saiku, Spotfire) are documented as having only basic connection and query support.

Who It’s a Good Fit For

Engineering-led teams building embedded analytics, internal tools, or AI agents on top of a warehouse — and who want the option to self-host and avoid vendor lock-in — are well served by Cube. Teams that have already standardized their transformation workflow on dbt, and want metric definitions to live as code next to those models with the same CI/testing discipline, are a natural fit for the dbt Semantic Layer. Larger enterprises with an existing, entrenched investment in Excel, Power BI, and/or Tableau, who need one governed metric definition reachable from all three without ripping out those tools, line up well with AtScale’s XMLA/MDX-first approach.

Who Should Look Elsewhere

Teams without any existing data warehouse or structured modeling layer will find all three tools add complexity they’re not ready for — a semantic layer assumes reasonably clean, already-modeled tables underneath it. Organizations not using dbt for transformations, and unwilling to adopt it, lose much of the dbt Semantic Layer’s appeal, since its value is tightly coupled to dbt-defined models. Teams whose BI stack is entirely modern/embedded (and has no Excel, Power BI, or Tableau dependency) may find AtScale’s XMLA/MDX-centric design and classic-BI focus is more enterprise machinery than they need.

Bottom Line

All three tools solve the same underlying problem — one governed source of truth for metric definitions — but arrive from different architectural starting points. Cube is the most flexible, open-source-first option with the widest query-API spread. The dbt Semantic Layer is the strongest choice when metrics should live as code alongside dbt’s transformation layer. AtScale is the deepest fit for enterprises standardized on Excel, Power BI, and Tableau who need warehouse-native query acceleration. The right pick depends less on raw feature checklists and more on which BI tools and data workflows your organization has already committed to.

FAQ

What’s the difference between a “semantic layer” and a “metrics layer”?

In practice the terms are used fairly interchangeably in this category. “Semantic layer” is the broader, longer-standing term for a governed modeling layer between raw data and query tools (sometimes including dimensions, hierarchies, and access rules beyond just metrics). “Metrics layer” is a more recent term that emphasizes the specific job of defining business metrics consistently. All three tools in this article describe themselves using both terms at different points in their own documentation and marketing.

Is MetricFlow or the dbt Semantic Layer free to use?

MetricFlow itself, the engine that compiles metric definitions into SQL, is open-source under the Apache 2.0 license. Querying metrics through the production dbt Semantic Layer APIs (JDBC, GraphQL, Python SDK, Arrow Flight SQL) is a feature gated to paid dbt Cloud plans, per dbt Labs’ own documentation. We’re not covering specific pricing tiers in this article, so check dbt’s current plan documentation for exact details.

Does adopting a semantic layer mean I have to rip out my existing BI tools?

No — that’s the point of this category. All three tools are designed to sit in front of existing BI tools rather than replace them, exposing governed metrics through protocols (SQL, REST, GraphQL, MDX, DAX, XMLA) that BI tools already speak, so you keep your existing dashboards and reporting tools and point them at governed definitions instead of raw tables.

Do these tools replace my data warehouse?

No. All three sit on top of an existing warehouse (Snowflake, BigQuery, Databricks, Redshift, and others, depending on the tool) rather than replacing it. AtScale and Cube both emphasize that query computation happens against your warehouse data in place or via cached aggregates they manage, not by copying your data into a separate store.

Sources


Discover more from Software Online Review

Subscribe to get the latest posts sent to your email.

Unknown's avatar

Author:

Innovations, logic & design thinking