Revenue can disagree across dbt, a BI tool and Claude because each one holds its own copy of the definition, or none at all. The BI tool and Claude are rarely the only places, either: a notebook, a spreadsheet export, an agent your engineers built and a revenue figure inside your product can each hold one more. The fix is one definition that all of them read by name.
Where does the revenue definition live in a dbt stack?
In a dbt stack, revenue is often defined in two places, Claude has no definition at all, and everything else writes its own SQL.
- In dbt. A model such as
fct_orderscleans the rows: it drops test orders, converts currency, and may carry arevenuecolumn. - In the BI tool. A LookML measure or a Power BI DAX measure sums that column, often with filters of its own, such as excluding refunds.
- In Claude. Connected to the warehouse, Claude sees table and column names. It writes its own SQL and picks whichever column looks like revenue.
- Everywhere else. A notebook, a spreadsheet pulled from the warehouse, an internal agent, or a revenue tile in your product each carry their own query, written by whoever built them.
If finance checks revenue on a dashboard, the definition it signed off on is the BI tool's measure. Claude never reads it.
Why do the copies drift apart?
The copies drift because each one changes on its own schedule, and nothing compares them. Here is how that can happen.
- Finance decides revenue should exclude refunds.
- The analyst updates the LookML measure. The dashboard is now net of refunds.
- The dbt
revenuecolumn still includes refunds. Nobody changed it, because nobody asked. - Someone asks Claude for last quarter's revenue. Claude sums the dbt column, refunds included.
Both numbers are correct for their own definition. On one ecommerce dataset, revenue for January to October 2022 was $4,510,963 with returned and cancelled items and $4,305,542 without them, 4.8% apart. From our post How an agent turns a question into a trustworthy answer.
Why aren't clean dbt tables enough?
To a dbt team, the data model is usually the gold layer: the tables dbt builds for people to query. Clean tables fix the rows, but not the definition, and they limit which questions can be answered.
- Each tool still writes its own SUM. Claude, the BI tool, a notebook and an app all read
fct_orders, and each decides for itself whether revenue nets out refunds. - Every new question waits on the pipeline. Someone asks for revenue by first-order channel, and no table has that cut. Someone writes a new dbt model, gets it reviewed, and runs the pipeline before anyone gets an answer.
- Meanwhile Claude improvises. Asked the same question, it joins whatever tables it can find, and its answer looks just as finished as one built on a reviewed model.
The tables are built bottom-up: each one exists because someone turned a business question into SQL ahead of time. What's missing is a definition above the tables that every tool, agent and app reads, and that can answer new combinations of them.
Can the dbt Semantic Layer serve the BI tool and Claude?
Yes, if your BI tool is one dbt integrates with. The dbt Semantic Layer runs MetricFlow, which defines metrics in YAML inside the dbt project, next to the models they read. MetricFlow is open source under Apache 2.0. A metric can be reviewed in the same pull request as the model it depends on.
- BI tools. As of November 2026, dbt lists Semantic Layer integrations for Power BI, Tableau, Sigma (in preview), Hex, Mode, Omni, Google Sheets, Excel and a few others. Looker is not on the list. Other tools can connect through dbt's JDBC and GraphQL APIs or exported tables.
- Claude. The dbt MCP server names Claude among its clients. An agent lists the metrics, then queries one by name.
- New questions. A metric can be sliced by any dimension its semantic models define, without a new dbt model.
- What it needs. As of December 2026, the Semantic Layer runs on the hosted dbt platform, on the Starter, Enterprise and Enterprise+ plans. Metric queries are metered per month (dbt pricing).
If your stack is dbt, Power BI or Tableau, and Claude, this is the most direct route. One caution: a new measure someone writes in DAX on top of a dbt metric is a second copy again.
Can Claude read the BI tool's model instead?
Yes. Looker, Power BI and Tableau each serve their models over MCP, the open protocol that lets an AI assistant call outside tools. This route fits when the BI tool already holds the definitions finance trusts, and moving them is not on the table.
It leaves two gaps. The dbt project keeps its own revenue column, so anyone querying the warehouse directly still gets the other number unless that column is dropped or renamed. And Claude can reach only the fields the BI tool's model exposes, not columns the BI tool never modeled. The Looker and Power BI comparisons cover both tools in more detail.
Why we'd put a Malloy model on top of the dbt tables
This is the setup we think fits best, and the one we build Credible on, so weigh our view with that in mind.
Malloy is an open-source modeling language, and Malloy Publisher is an open-source server for a Malloy model. The model sits on top of the dbt tables, or on raw tables and files where dbt hasn't built anything. dbt keeps cleaning and building tables, and the pipeline doesn't change.
Three things make Malloy a good fit for one definition of revenue:
- Meaning, joins and access rules sit in one file. Net revenue is a named measure with its description attached. The model states how the tables join, and its access rules decide who may query each source and which rows each person sees.
- Measures stay correct across joins. Malloy computes a sum or count correctly when a join repeats rows, so revenue joined to order items doesn't double. A new cut, such as revenue by first-order channel, is a query over tables that already exist, not a new dbt model.
- People and agents can read it. A Malloy model is a short text file, not generated YAML. An analyst can review a change to revenue, and an agent can read the definition before it answers.
Publisher serves the model to Claude, ChatGPT and other MCP clients, to agents and apps your engineers build over a REST API, and to reports and data apps that live in the same package. All of them read the same measures under the same rules. Where a question is asked often or is slow, you can mark a source or measure to be stored as a table, and Publisher builds and refreshes it.
The limit is BI dashboards you want to keep as they are. Power BI, Tableau and Looker can't ask the model for a measure by name. They can read tables the model builds in your warehouse, but then each writes its own SUM over them. If the dbt project already has MetricFlow metrics, the dbt migration guide maps each one to Malloy and shows how to check the result against the Semantic Layer's numbers.
Which setup should you choose?
Start with revenue alone. List every place that shows it, including agents, apps and notebooks, then pick the setup all of them can reach.
- Most teams: a Malloy model on top of the dbt tables. Claude, your own agents, apps and reports read one definition under one set of access rules, and new questions don't wait on the pipeline.
- Power BI or Tableau dashboards must stay as they are and read the metric directly: the dbt Semantic Layer.
- The BI tool holds the definitions finance trusts, and moving them isn't on the table: the BI tool's model, served to Claude.
Then delete the other copies, or point them at the one that stays.
If you choose Malloy, you don't need to buy anything. Malloy is MIT-licensed, Publisher is open source, and the analysis skills for agents are in the same repository. The tutorial gets an agent answering questions over your own files in a few minutes. Run on your own, Publisher's access rules rely on a gateway you set up to sign people in.
Credible runs Publisher as a managed service. It signs your people in, so the access rules know who is asking, serves one model to Claude, data apps and dashboards, builds and refreshes the tables you mark to store, and publishes each change as a new version you can roll back to. To connect Claude, see Chat Clients. See pricing, or read the docs.
Frequently asked questions
Can Claude query the dbt Semantic Layer?
Yes. The dbt MCP server connects Claude and other MCP clients to a dbt project. Its Semantic Layer tools include list_metrics and query_metrics, so Claude can ask for the revenue metric by name instead of writing its own SQL. As of December 2026, the Semantic Layer runs on the dbt platform's Starter, Enterprise and Enterprise+ plans, and which MCP tools are available depends on the plan.
Does Looker read dbt Semantic Layer metrics?
Not natively. As of November 2026, Looker is not on dbt's list of Semantic Layer integrations, which includes Power BI, Tableau, Sigma, Hex, Mode, Omni, Google Sheets and Excel. Without an integration, revenue in Looker lives in a LookML measure, a second copy that someone has to keep in agreement with the dbt metric.
Should revenue be defined in dbt or in the BI tool?
Put the row-level work in dbt: cleaning orders, removing test accounts, converting currency. Put the aggregate definition, such as net revenue as order amounts minus refunds, in one place that every tool reads by name. If the BI tool and Claude each write their own SUM over the dbt table, there are two definitions again, however clean the table is.
Can a Malloy data model sit on top of dbt models?
Yes. A Malloy model reads the tables dbt already builds, so the dbt pipeline doesn't change. The model adds what the tables don't hold: the measures, how the tables join, and descriptions an agent reads. A new question that combines existing tables is answered without a new dbt model. Existing MetricFlow metrics can be rebuilt as Malloy measures and checked against the Semantic Layer's own numbers. How dbt metrics map to Malloy →