published fresh until

dbt MetricFlow: when does it pay off over shared SQL?

Summary When several consumers repeatedly disagree on shared measures, pilot dbt MetricFlow on one disputed metric and compare its results and operating burden with shared SQL; keep shared SQL when one report and one owner already agree. For self-hosted metadata, run dbt parse.

Not for Claude Code generating dbt models; see agent-writes-good-dbt-models-context-checks-skills.

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

What this thread does

Our suggested pilot trigger is repeated disagreement across consumers. Pilot dbt MetricFlow on a disputed metric used by multiple consumers, and expand only after its results and operating burden beat shared SQL.

Do first: in a configured self-hosted project with the required time spine built, run dbt parse.

Start with a bounded pilot

1. Pick one existing metric with a business owner and a trusted reconciliation query. Write down its grain, exclusions, time zone, late-arriving-data policy and allowed dimensions before authoring configuration. 2. Start from a clean dbt model. In the current dbt Labs semantic-model specification, enable semantic modeling, declare the aggregation time dimension, put entities and dimensions on columns, and define simple metrics. Do not paste an older standalone semantic_models example into a newer project without checking its specification. 3. These steps assume a working environment: install compatible dbt, adapter and MetricFlow packages for self-hosted use, or configure the platform CLI/project connection for hosted use. Configure and build the required time spine first. For self-hosted MetricFlow, refresh metadata with dbt parse, then run mf validate-configs and mf list metrics. For a connected dbt platform project, use dbt sl validate and dbt sl list metrics instead. These are different execution paths, documented in MetricFlow commands. 4. For an example metric actually named revenue, query mf query --metrics revenue --group-by metric_time__day. Replace names with those returned by your project. Reconcile totals and slices against the approved calculation before connecting consumers. 5. Record mismatches, query cost, response time and the work needed to add a new dimension. Continue only if shared consumers adopt the same definition and someone owns changes.

Stable versions and commercial boundary

As of November 2026 (checked 2026-11-24), these are the latest stable releases on their respective release pages, not a tested compatibility pair.

ComponentVersion and licenceCost boundary
dbt v11.12.7Existing warehouse execution still needs budgeting
MetricFlow engine0.214.0, Apache-2.0Engine licence differs from hosted service entitlement
Hosted Semantic LayerManaged by the platformCurrent dbt docs list Starter, Enterprise and Enterprise+ for downstream dynamic querying; no dollar quote is established here

Which constraint changes the choice?

Your situationOur suggested approach
Several teams keep redefining the same measuresPilot MetricFlow with an accountable owner
One dashboard, stable SQL, one maintainerKeep the shared model/query; catalog names and definitions first
A downstream tool must query governed metrics dynamicallyConfirm its supported integration and account entitlement before buying
Complex fiscal calendars or sensitive join pathsMake them acceptance cases before expanding the catalog

A catalog is also an ownership and discovery practice. An engine alone will not resolve a dispute about what counts as a customer.

Public evidence

In discussion 734, janmechtel asks how standalone definitions are consumed; mirnawong1 distinguishes local engine queries from hosted integration. The phrase “query your data warehouse locally” captures the boundary; historical plan names there should not be used for purchasing today.

In issue 820, Jstein77 requests “Support custom calendar.” It is evidence of a real modeling requirement, not proof that every proposed syntax is currently supported. Reconcile your fiscal periods explicitly.

Prompt and mistakes

“Compare a shared SQL model with MetricFlow for our consumers. Propose one metric pilot, its owner, reconciliation cases, required integration and rollback. Separate entitlement from the open-source engine.”

Do not assume YAML validation proves accounting correctness, permit fan-out joins without reconciliation, or treat a metric catalog as permission to expose all underlying data.

Limits

No project, adapter pair or downstream integration was executed. Public evidence is mainly product discussions and feature requests; no independent ROI benchmark is established. Verify package compatibility in the intended adapter environment before installation.

Started from a post by @dbt Labs, packaged by the editor. Original post

Subjects

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# dbt MetricFlow: when does it pay off over shared SQL?
Summary: When several consumers repeatedly disagree on shared measures, pilot dbt MetricFlow on one disputed metric and compare its results and operating burden with shared SQL; keep shared SQL when one report and one owner already agree. For self-hosted metadata, run `dbt parse`.
Copy for agent
get the whatworks thread dbt-metricflow-metric-catalog-start and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread dbt-metricflow-metric-catalog-start
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp for anonymous reading; sign in via OAuth only to report a trial. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp