How Databricks Plans to Give AI Agents One Shared Definition of Every Metric

Server racks with blue status lights in a data centre

How Databricks Plans to Give AI Agents One Shared Definition of Every Metric

Server racks with blue status lights in a data centre

Ask five teams in the same company what revenue means and you may get five different answers. One team counts it when an order is placed, another when the payment clears, a third after refunds, a fourth before discounts and a fifth only for a particular region or product line. For years that was an annoyance for dashboards. Now that AI agents query enterprise data directly, it is a much bigger problem: an agent that invents its own definition of a metric will confidently return the wrong number, and nobody may notice until a decision has been made on it. Databricks has spent the past year building its answer to that problem, and its latest step is to move beyond the traditional semantic model toward what it calls composable metrics for AI agents.

The idea sits inside Unity Catalog, the governance layer Databricks released five years ago and now says more than 14,000 organisations use to govern data and AI. At its Data + AI Summit, the company framed the change in three words: control, context and choice. Control means governing what agents do, not just what they can access. Context means giving agents a shared understanding of the business so they stop guessing. Choice means avoiding lock-in to one cloud, model or format. Composable metrics belong squarely in the middle of that story, in the context layer, where a metric is defined once, governed like any other asset, and then reused by every tool and agent that needs it.

That sounds abstract, but the practical change is simple to state. Instead of every dashboard, notebook and agent carrying its own copy of a formula, the formula lives in one place. A metric view in Unity Catalog captures the measure itself, the tables and joins behind it, and the plain-language metadata that tells an agent what it means. When someone asks for monthly revenue, or when an agent asks on their behalf, the answer comes from the same definition. Change the definition once and every consumer picks up the change. That is the promise, and it is also the test: if the definition is wrong, everything downstream is wrong in exactly the same way, so getting the modelling right matters more than ever.

What composable metrics actually are

A metric view is a governed Unity Catalog object that describes a business measure in a structured, reusable form. It starts with a source, usually a fact table, and adds the dimensions a metric can be grouped or filtered by, the measures themselves, and the joins that connect related tables. The definition is written in YAML and validated when the view is created, either in SQL or through the Catalog Explorer interface. Consumers then query it with the MEASURE function, which resolves the named measure against the view rather than recalculating it from raw columns.

Take a familiar example. Net revenue might be defined as the sum of order value after discounts, while revenue per customer divides that total by the count of distinct customers. In a metric view both measures sit beside the dimensions they can be analysed by, such as region or month, and the engine works out the correct grain for each query.

Composition is where the newer capabilities come in. Databricks has been extending what a metric view can model: multi-fact relationships that draw measures from more than one fact table, level-of-detail calculations that compute at a granularity the author chooses, parameterised metrics that adapt to inputs supplied at query time, and improved window measures for trailing averages, period-over-period comparisons and running totals. Together these let a team build small, tested measures and combine them into larger ones, rather than writing one giant formula for every new question. A churn rate can reuse a definition of an active user. A margin measure can reuse revenue and cost. Each building block is defined once, reviewed once and governed once.

The metadata around a measure is just as important as the maths. Every field and measure can carry a display name, a description and up to ten synonyms, so that when a user asks Genie, the natural-language interface in Databricks AI/BI, about sales, turnover or takings, the agent can map those words to the same measure. That mapping is the difference between an agent that answers and an agent that guesses. Without it, an agent falls back on column names and its own training, which is how two agents end up answering the same question with two different numbers.

Why a semantic model alone was not enough

Rows of server racks with blue status lights in a data centre, the infrastructure that runs governed metric definitions for dashboards and AI agents
Governed metrics run on the same lakehouse infrastructure as the data itself, so agents and dashboards read from one definition rather than many copies.

Semantic layers are not new. What changed is who consumes them. A semantic model used to serve people: analysts building dashboards, managers reading reports, data teams writing SQL. The definitions had to be clear to a human, and if they were ambiguous a person could ask a colleague. Agents do not ask colleagues. They read the model, pick an interpretation and run with it, at machine speed, across hundreds of questions. A vague definition that a human would have queried becomes a silent error at scale.

Databricks describes four places where an AI analyst has to guess. The first is the formula itself: is revenue per customer a sum divided by distinct customers, or an average of averages? The second is the join: which path between tables, and at what cardinality? The third is the word: does sales mean revenue, and is a particular code the same as a particular region? The fourth is the window: which fiscal year, what counts as last quarter, which default filter applies? A metric view is designed to settle all four in advance, so the agent’s job shrinks from inventing an answer to choosing which governed definition to ask for.

That is also why Databricks has been building the surrounding context layer. Glossary pages let teams define authoritative business concepts and connect them to the underlying data, while Domains organise assets into business-aligned categories so agents get scoped, relevant context instead of the entire catalog. Both feed into the Genie Ontology, a learned context layer that became generally available in November. The metric view is the precise, governed core; the ontology is the looser, learned layer around it.

What is new in this round of updates

The latest expansion touches modelling, authoring, performance and portability. On modelling, multi-fact relationships are now in public preview in dashboards, and relationships between metric views are in beta, which matters for organisations whose key metrics span several fact tables rather than one tidy star schema. Level-of-detail calculations and parameterised metrics give authors finer control, and window measures make period comparisons easier to express without hand-rolled SQL.

On authoring, Databricks has added visual, UI-driven creation alongside SQL, and agents can now draft and suggest metric definitions for a human to review. That lowers the barrier for teams that understand their business but do not write YAML for a living, though it also puts a premium on review: an agent-drafted definition that nobody checks is just a faster way to enshrine a mistake. The sensible pattern is the one Databricks itself describes, with definitions reviewed and certified before agents are allowed to use them.

On performance, materialisation is in public preview. When it is enabled, the platform pre-computes metric results and refreshes them incrementally, then rewrites queries to use the pre-aggregated results automatically. Dashboards and agent queries return faster without any change to how metrics are defined, which matters because agents ask many more questions than people do, and slow answers compound into slow workflows. On portability, metric views can now be published to Power BI, so reports built there use the same governed definitions as AI/BI dashboards and Genie, and existing models can be imported from Power BI and Tableau in beta, giving teams a way to bootstrap from the semantic models they already have instead of starting from a blank page.

There is also an openness argument that Databricks leans on heavily. Metrics are open source, available in Apache Spark and Unity Catalog open source, and ready for the Open Semantic Interchange format, which is designed to let semantic definitions move between tools. The pitch is that a definition written in Databricks should not trap a customer there, and that other engines and tools can consume the same governed meaning. Whether that portability holds up will depend on how widely the interchange format is adopted.

The limits teams should plan around

None of this removes the hard work. A composable metric system is only as good as its definitions, and writing good definitions is a business exercise before it is a technical one. Somebody has to decide what counts as an active user, when revenue is recognised, and which customers belong in which segment, and then defend those decisions when teams disagree. Organisations that have never settled those arguments will find that a semantic layer forces the conversation rather than avoiding it, which is useful but not painless.

There are practical constraints too. Creating metric views requires Databricks Runtime 16.4 or later, with some features needing 17.3 or later, so teams on older runtimes will need to upgrade before they can use the newest capabilities. Several of the headline features are still in preview or beta, including materialisation, multi-fact relationships in dashboards, relationships between metric views and import from Power BI and Tableau, which means behaviour can change and production teams should pilot before they rebuild reporting on top of them. And governance is not automatic: access controls, certification and ownership still have to be set up, or the catalog becomes a well-organised pile of definitions nobody trusts.

The competitive picture is worth watching as well. Snowflake has its own semantic view for Cortex agents, and the two approaches differ in emphasis: Snowflake pairs language-model reasoning with rule-based definitions, while Databricks centres the metric itself in a Unity Catalog object with its own modelling language. The recent momentum at Snowflake, including a raised forecast, is a reminder that this is a contested space, not a victory lap for either side.

What it means for teams building with agents

For data teams, the immediate implication is a shift in where effort goes. Less time writing the same formula in five tools, more time agreeing what the formula should be and documenting why. The workflow lessons Microsoft’s IT team shared about building agents that actually work point in the same direction: the unglamorous work of grounding, testing and governance is what separates an agent that helps from one that invents. Metric views are Databricks’ version of that grounding for numbers, and they will reward teams that treat definitions as products with owners, reviews and changelogs.

For business users, the change should be mostly invisible when it works: the same question gets the same answer in a dashboard, in Genie and in a report. For executives, the relevant question is whether the organisation’s most important metrics have owners and agreed definitions, because an agent rollout built on unsettled definitions scales confusion faster than insight. Databricks’ own funding story underlines how much is riding on this bet: the company was reported to be discussing a valuation around $232 billion.

The broader lesson goes beyond one vendor. As agents move from answering questions to acting on data, the definitions behind the numbers become part of the control plane: a semantic model used to be documentation, while a composable metric is infrastructure that agents execute against. Databricks has built most of the machinery for that. Whether teams use it well is the part no vendor can ship for them.

Bottom line: Databricks is turning business metrics into governed, reusable building blocks that AI agents can compose instead of inventing, with richer modelling, faster materialised queries and an open format for sharing definitions. The technology is largely in preview or recently released, so the real test is whether teams invest in the definitions themselves, because one shared metric is only better than five conflicting ones if the shared one is right.

on this page