dbt Cloud integration
Your dbt Cloud Semantic Layer defines the metric. KPI Tree explains the movement, names the owner and proves the fix.
Paste an Environment ID and a read-only service token.Paste an Environment ID and a read-only service token. KPI Tree reads your whole metric catalogue through the dbt Semantic Layer API, keeps every definition as dbt compiles it, never re-implements a calculation, and creates a child metric for every dimension value you care about. Above that it adds the layer dbt never carried: which metrics drive which, with statistical confidence, who is accountable when one moves, and whether the last action worked.
models/marts/metrics.yml
served by the Semantic Layer API
metrics:
- name: revenue
label: Revenue
type: simple
type_params:
measure: order_total # agg: sum
filter: {{ Dimension('order__status') }} = 'complete'
Revenue
Synced from dbt£1.28m
Month to date · vs £1.51m last month
Aggregation
sum · day, week, month, quarter
Primary driver
Conversion rate · lag 3d
Accountable
Last action
Checkout rollback · verified
Governed in dbt Cloud. Explained in KPI Tree. One token, the whole loop.
The dbt Semantic Layer is where a metric stops being a matter of opinion: one definition, compiled by MetricFlow, served to every tool through one API. KPI Tree is one of those tools. It lists your metrics with their dimensions, grains and aggregation through the Semantic Layer API and asks dbt Cloud to compile the SQL, so the number here is the number dbt gives everyone else. Link the warehouse your project builds into and that compiled SQL runs there instead, which keeps your Queried Metrics usage down.
What the dbt Semantic Layer does not know is why Revenue fell, who owns Conversion, or whether Monday's release moved it. That is the layer KPI Tree adds: a causal metric tree re-tested every night, RACI ownership on every node, action plans measured against a forecast, and Canopy, the business context layer that hands all of it to your people and to the agents they already use over MCP. Your dbt project stays the single source of truth for how a metric is calculated. KPI Tree becomes the source of truth for what to do about it.
Every definition, as compiled, nothing re-declared
Names, labels, descriptions, dimensions, queryable grains and measures come across through the Semantic Layer API. Sum, average, first and last are read from each definition, so weekly and monthly rollups behave the way your YAML says.
Choose metrics to sync
4 of 5 selectedRevenue
dimensions: region, channel
Orders
dimensions: region, channel, plan
Average order value
dimensions: region
Active customers
dimensions: plan
Cumulative bookings
dimensions: none
Aggregation read from each definition. Nothing re-declared.
One query per metric, everything else in memory
Each metric is one compiled query at day grain, through dbt Cloud or on your own warehouse. Comparisons, rollups, breakdowns and the nightly causality sweep run in KPI Tree’s engine, so neither bill grows with the tree.
Warehouse queries · last sync
4 total0 warehouse queries for
period comparisons, weekly and monthly rollups, dimension breakdowns, nightly correlation and causality tests. All computed in memory from those four results.
Dimension metrics, created automatically
Link a warehouse, switch on Create Dimension Metrics, and every dimension you chose becomes a child metric per value: Revenue (Region: EMEA), Revenue (Region: APAC), and so on. Each child gets its own owner, baseline and nightly driver tests, so you see which region moved and who owns it. No YAML changes.
Revenue
Create Dimension Metrics · ondimensions: region, channel · 5 child metrics created
Each child has its own owner, baseline and nightly driver tests. No YAML changes.
Re-sync as a diff, trees and owners untouched
Press Sync, or call the API, and the catalogue is compared with the last run: created, updated, retired and skipped, with the reason for every skipped dimension. Ownership, trees and action history stay where they were.
Sync summary
Completed 06:1442
Found
3
Created
38
Updated
1
Archived
0
Skipped
customer__customer_id skipped: 48,211 values, above the 50 value limit
Trees, owners and action history preserved · gross_margin renamed in place
Connected in three steps. A token, an environment, a sync.
Create a read-only service token
- Semantic Layer Only and Metadata Only, nothing broader
- Any host: the default endpoint, the EMEA or AU region, or a single-tenant instance
- The token is encrypted at rest and never leaves the connection
dbt Cloud Semantic Layer
ConnectedNever writes to your project, jobs or environments.
Sync the catalogue
- Runs as a background job, so large catalogues complete reliably
- Selective sync: pick metrics and dimensions one at a time
- Re-run from the connection page, or from your own pipeline through the API
Sync summary
Completed 06:1442
Found
3
Created
38
Updated
1
Archived
0
Skipped
customer__customer_id skipped: 48,211 values, above the 50 value limit
Trees, owners and action history preserved · gross_margin renamed in place
Optionally, run the SQL on your own warehouse
- Cuts dbt Cloud Queried Metrics usage
- Required for dimension metrics
- Governance unchanged: dbt still owns the definition
dbt Cloud Semantic Layer
ConnectedWhat comes across from the dbt Cloud Semantic Layer. And what stays exactly where it is.
Metrics simple, ratio, cumulative, derived, conversion
Dimensions and entities child metrics created for you
Aggregation and rollups read, inferred, or declared
Bring the artifacts too. The context behind every number.
Post the target directory from your dbt Cloud job to the same connection and every metric gains its own lineage, column context, build history and freshness. An assistant can then check whether a movement is a business change or a stale source before anyone acts on it.
semantic_manifest.json
Metric definitions
optionalRead live through the API on every sync. Include it in the ZIP to keep the artifacts in step.
manifest.json
Model lineage
optionalModels, seeds and sources with their dependencies. Unlocks data model exploration in the app and over MCP.
catalog.json
Column context
optionalEvery warehouse column with its real data type, merged over the descriptions you wrote.
run_results.json
Build history
optionalLast build status and timing on every model, and each metric’s refresh cadence worked out from your run history.
sources.json
Source freshness
optionalFreshness status and loaded-at times, so stale upstream data shows on the metric itself.
Artifacts are posted from your job through the upload endpoint, up to 50 MB each. KPI Tree does not fetch them from dbt Cloud on its own, so add the upload as the last step of the job that builds them.
Ask an agent the same question twice. Once on the dbt Semantic Layer, once on Canopy above it.
A dbt Cloud team usually already has an agent on the Semantic Layer API or the dbt MCP server, and it comes back with a governed number. The fair question is what Canopy adds. The pair below shows the shape of the difference, and the benchmark beneath it measures it on eight real business questions.
The semantic layer alone
A correct number, and a dead end.
Every consumer of the dbt Semantic Layer, dbt’s own MCP server included, gets the same governed figure. None of them gets the cause, the owner or the follow-up, so the question goes back to the data team.
Canopy on top of dbt
The driver, the owner, the build check and the next step.
Canopy reads the causal tree, the RACI, the build history from your dbt artifacts and the open tasks, so the first answer is the one people act on.
We measured it. Eight business questions toOpus 5, three ways in: Snowflake over MCP, raw SQLSnowflake Cortex Analyst, a governed semantic modelCanopy withSnowflake Semantic Views
One shared dataset, the same model, the same questions. The Cortex Analyst arm is the closest stand-in for an agent on the dbt Semantic Layer or the dbt MCP server: governed definitions and correct numbers, but no causal model, no owners and no record of what was tried. All three arms say what moved. Only the Canopy arm says why, who owns it and what is already being done, first time, without a week of follow-up questions.
August was a good month. The alarming numbers on the dashboard right now are September-to-date, not August — the health report's "EBITDA -21.8% MoM" is 1–9 Sep vs 1–9 Aug. Read on the full month, August looks like this:
| Aug 2026 | Jul 2026 | Aug 2025 | |
|---|---|---|---|
| Revenue | £378,621.99 | £364,535.26(+3.9%) | £368,140.79(+2.8%) |
| EBITDA | £111,351.63 | £99,888.10(+11.5%) | £114,655.61(-2.9%) |
| Gross margin % | 60.2 | 59.7 | 68.5 |
| COGS % | 39.8 | 40.3 | 31.5 |
| Labour cost % | 22.1 | 23.5 | 14.5 |
The finding: August sold more than last August and earned less. Revenue was up £10,481.20 year on year, yet EBITDA was down £3,303.98. That is not a demand problem — it is entirely a cost-structure problem. COGS is running 8.3 points higher than last August and labour 7.6 points higher.
I'm quoting those as percentage points rather than converting to a cash bridge: the margin metrics aggregate daily rates and don't reconcile cleanly against the P&L lines, so a pounds figure would be spurious.
KPI Tree's Canopy business context layer explains both halves of that.
Why August beat July:
- The King's Head kitchen refit finished ahead of schedule, so the venue reopened a full week early and caught the bank holiday trade that had been written off.
- The Sunday roast menu relaunched across all London venues with sharing boards and a fixed-price family option.
- At Shoreditch, moving quiz night from Tuesday to Thursday lifted revenue per labour hour — Thursdays were dead and the kitchen was already staffed.
Why the year-on-year margin is gone:
- Menu re-costing came back showing produce inflation at about 9%, steeper than budgeted, with beef and dairy the worst offenders.
- The draught supplier raised keg prices 6%, affecting every venue on the same contract.
- Leadership chose to re-engineer the menu rather than raise prices — protecting the headline price going into a soft quarter, but absorbing the inflation into margin. August is what that decision costs.
Two other recorded items shape the read: the area manager is on leave through the bank holiday fortnight (cover split between two senior venue managers, until 22 Sep), and the new till system is blocked on payment provider approval, so the faster table-ordering flow is still switched off at the pilot sites.
All four venues beat July. Against last August, only one is ahead:
- Canary Wharf £24,832.15 — +3.9% (+£934.15) — the only venue up
- Liverpool Street £26,658.84 — -3.9% (-£1,085.55)
- Paddington £26,977.50 — -4.4% (-£1,241.53)
- Shoreditch £32,883.14 — -5.5% (-£1,911.05)
Canary Wharf being the outlier lines up with the recorded decision to hold its staffing flat through the quarter despite the labour cost target, on the grounds that the lunch trade is too volatile to cut cover. On these numbers that call is paying.
Both funded initiatives are aimed squarely at this and both are working month-on-month:
- Menu engineering programme (Rachel Morrison, £45,000 budget, £18,500 spent, 33% progress) targets COGS % down — COGS fell 40.3 → 39.8 July to August.
- Rota optimisation rollout (Michael Patel, £30,000 budget, £12,000 spent, 33% progress) targets labour cost % down — labour fell 23.5 → 22.1. Canopy confirms it went live at the pilot venue with demand-based templates.
So the levers are moving in the right direction; they just haven't clawed back the year-on-year gap yet. Two departmental objectives sit on this — "Reduce labour cost percentage to below 28%" (Oliver Blackwood) is at risk, and "Improve gross margin to 68% across all venues" (Thomas Williams) is nominally on track at 34% outcome progress but only 16.7% execution progress.
One thing August does not explain. The quarterly EBITDA goal of £950,000 (Thomas Williams and Oliver Blackwood, due 30 Sep) stands at £239,950.11 — that is July £99,888.10 + August £111,351.63 + Sep 1–9 £28,710.38, and it reconciles exactly. With 21 days left and August's best-in-quarter month at £111,351.63, that target cannot be reached. Q3-to-date is 44.3% below the same span of Q2 (£430,770.18), so Q2 ran at roughly £143k/month against Q3's ~£105k. That gap is seasonal or structural and predates August; it is not caused by anything in the August numbers.
- Take the keg and produce increases to the P&L, not just the menu. Rachel Morrison owns COGS % and the menu engineering programme. The decision to re-engineer rather than re-price was made before produce inflation came back at 9% — that's a materially different input than when the call was made, and it's Thomas Williams' and Oliver Blackwood's decision to revisit as EBITDA owners.
- The one check that settles it: whether the draught contract is open to renegotiation or a second supplier. Every venue is on the same contract, so it's a single conversation with a group-wide 6% effect. Nobody in Canopy is recorded as owning that — Rachel Morrison is the right person to open it.
- Unblock the till rollout. The payment provider approval is holding the faster table-ordering flow off the pilot sites. That is a phone call to the provider, not an analysis, and it's the one recorded blocker with no owner attached.
- Reset the £950k quarterly target. It is arithmetically unreachable and it is currently making a company objective read as on-track at 29.3%. Thomas Williams and Oliver Blackwood are Responsible.
- Look again on 1 October, when September closes and gives a clean full-month read on whether the two initiatives keep pulling COGS and labour down.
What would change this conclusion: if the August revenue lift was mostly the King's Head reopening early rather than the Sunday roast relaunch, then the underlying like-for-like trade is flatter than +2.8% and the cost story is worse than it looks. I can't separate those — there's no King's Head metric in the tree; the EBITDA search returned only Canary Wharf, Shoreditch, Liverpool Street and Paddington. That's a measurement gap worth closing.
Two things I can do on your say-so: Canopy has a pointer saying the full autumn menu push context — promo dates and first-wave venues — is in the #marketing channel, and I can pull that thread in. I can also record the "revenue up, EBITDA down year on year, cost-driven" finding against EBITDA so it's there next month. Both need your go-ahead — ingesting reads the whole channel and can adopt the Slack workspace as a context source.
Each surface is judged on whether its answer drew on the business context recorded for this question. The judge saw the answers unlabelled, and saying plainly that the data is not there counts in a surface's favour. The judge's own term and specifics count sit under each answer.
Part of the dbt Semantic Layer integration. One connection for dbt Cloud, one for dbt Core, the same layer above.
The hub page covers what the dbt Semantic Layer is, what KPI Tree adds above it, the benchmark and the security posture. The dbt Core page covers the manifest path with no dbt Cloud account.
Common questions
Which dbt plans support this integration?
Any dbt platform plan that includes the Semantic Layer API: Starter, Enterprise and Enterprise+. The Developer plan does not expose the API. If you run dbt Core without dbt Cloud, use the dbt Core integration, which needs no dbt Cloud account at all.
What permissions does the service token need?
The Semantic Layer Only and Metadata Only permission sets, both of which are read-only. Create the token in dbt Cloud under account settings, note the Environment ID of the environment your Semantic Layer is configured on, and paste both into the connection wizard. The token is encrypted at rest and never leaves the connection.
Does it work with regional or single-tenant dbt Cloud instances?
Yes. The host is a field in the wizard. It defaults to the multi-tenant endpoint and can be set to the EMEA or AU region, or to the semantic layer host of a single-tenant instance.
Do I have to redefine my metrics in KPI Tree?
No. KPI Tree reads your definitions through the Semantic Layer API and asks dbt Cloud to compile the SQL, so the number here is the number dbt gives every other tool. There is no second semantic layer to keep in sync. Your time goes into modelling how metrics drive each other and who owns them, not into re-entering definitions.
How does KPI Tree query the Semantic Layer, and what does it cost in dbt Cloud?
It uses the Semantic Layer GraphQL API to list metrics and to compile or run one query per metric at day grain, with results returned as Apache Arrow. dbt counts each compiled or run query as a queried metric. To keep that usage down, link a warehouse connection and KPI Tree runs the compiled SQL on your own infrastructure instead, while definitions still come from dbt Cloud on every sync.
How often does the catalogue sync?
On demand. Press Sync on the connection page after your project changes, or call the sync endpoint from the last step of the dbt Cloud job that builds your project so the catalogue refreshes with every deployment. Each sync runs as a background job, compares the catalogue with the previous run and reports what was created, updated, retired and skipped. Trees, ownership and action history are preserved.
What are dimension metrics, and why do they need a linked warehouse?
With dimension metrics on, KPI Tree probes the distinct values of each dimension you chose for a metric and creates a child metric per value, so Signups with a Plan dimension gains a node for each plan with its own owner and tracking. The probe runs on your warehouse, so a linked warehouse connection is required. The default limit is 15 values per dimension, adjustable between 2 and 200 at connection, dimension or metric level, and any dimension above its limit is skipped with the reason shown in the sync report.
How does KPI Tree decide whether to sum or take the last value across a week or a month?
It reads the aggregation from the definition first: sum, count, average, min and max map straight from the measure, a ratio or cumulative metric rolls up as its last value, and a non-additive dimension marks a stock that takes its first or last value. Where the definition leaves it open, the metric type and name decide, and the sync report says which rollups were declared and which were inferred. To settle it yourself, add meta.kpi_tree.aggregation to the metric or measure in your YAML and the derivation never overrides it.
Which metric types come across?
Simple, ratio, cumulative, derived and conversion metrics, as long as the metric is queryable at day grain. Metrics offered only at weekly or coarser grains are listed as skipped in the sync report rather than guessed at. Every other grain, from week to quarter, is computed by KPI Tree from the daily series.
Can I add dbt artifacts to a dbt Cloud connection?
Yes. Post manifest.json, catalog.json, run_results.json and sources.json from your job’s target directory to the connection’s upload endpoint, ideally as the last step of the job that builds them. They add model lineage and data model exploration, warehouse column types, build history with each metric’s refresh cadence, and source freshness on the metric itself. KPI Tree does not fetch artifacts from dbt Cloud on its own.
Are saved queries, exports, tests or exposures read?
Not at present. KPI Tree syncs the metrics themselves and you choose dimensions per metric, so saved queries are not imported. Exports land as tables in your warehouse, and an export table can be tracked as a SQL metric on the warehouse connection. dbt tests and exposures are not read, and lineage from an uploaded manifest is kept at model level.
Does it work with the dbt Fusion engine?
KPI Tree only talks to the Semantic Layer API, so the engine behind your environment does not change the connection. Metrics defined under the modernised YAML spec that Fusion and dbt Core 1.12 use are read the same way as metrics defined under the earlier spec.
Does KPI Tree write to my dbt project?
No. The service token carries the Semantic Layer Only and Metadata Only permission sets and nothing broader. Nothing is written back to the project, no jobs are triggered and no models or environments are touched.
Is this the dbt metrics layer?
The dbt Semantic Layer is the successor to the dbt metrics layer. It keeps the idea of metrics defined once in YAML and adds semantic models, entities and MetricFlow, which compiles the SQL. KPI Tree reads it through the Semantic Layer API, so it works with the current spec rather than the retired metrics package.
Can I combine several dbt environments or projects on one tree?
Yes. Each environment is its own connection, and metrics from several of them sit on the same tree with their own calculation sources. The tree carries the drivers, owners, targets and actions across them.
Can dbt metrics share a tree with metrics from other sources?
Yes. Metrics from several dbt environments, from Snowflake Semantic Views or Databricks Unity Catalog, from SQL on a warehouse connection and from spreadsheets all sit on the same tree. Each keeps its own calculation source while the tree carries the drivers, owners, targets and actions across them.
Should I use this or the dbt Core integration?
Use this one if you have a dbt platform plan with the Semantic Layer and want the catalogue read live with no uploads. Use the dbt Core integration if you run dbt Core without dbt Cloud, or if you want every query to run on your own warehouse with no dbt Cloud usage at all.
Related guides. Frameworks and metrics in depth.
dbt semantic layer and metric trees: how they fit together
dbt is the plumbing, the metric tree is the application above it
Semantic layer vs business context layer
A semantic layer settles what a metric is. It cannot settle how metrics drive each other, who owns them, or what happens when one moves.
How to build a metric tree
A step-by-step metric tree and KPI tree template from North Star to daily levers
Related integrations. More sources that work with KPI Tree.
You governed the definition. Now govern the decision.
Connect your dbt Cloud Semantic Layer and see your own metrics as a causal tree with named owners and verified actions, in a demo on your data.
The guide
dbt semantic layer and metric trees: how the two layers fit together, and where each one stops.
Read the guide



