How to Boost the Meaning of Your Data: databricks Metric Views

Let's say you're asked to create a dashboard that highlights company revenue for the current year compared to the previous year. Sounds simple enough, until you look at the data and realize you're not sure how to calculate "revenue". Do you account for refunds? What about discounts?

So you turn to a knowledgeable coworker, who confirms that you should factor in both refunds and discounts when calculating revenue. However, another coworker tells you the Director always considers discounts but not refunds when obtaining total revenue. Situations like these can be awkward at best and chaotic at worst, and metric views are here to help you avoid them.

Read on for an overview of how metric views enhance an organization's data practices (familiarity with them is assumed), as well as common questions about them.

Why You Should Be Excited About Metric Views

Metric Views give you the ability to define crucial business metrics and definitions only once, and then consistently reuse them across everything from SQL queries to dashboards and AI-Agent interactions.

Because they exist in the databricks Unity Catalog—the unified data-and-AI-assests layer that serves as the semantic backbone of databricks—they get the same core capabilities, including permissions (establishing who has access), lineage tracking (tracing the path of data through time), and governance (guaranteeing the right quality for the right users at the right time). This becomes increasingly relevant as organizations grow and more teams rely on shared data assets.

With standard SQL views (virtual tables whose contents are defined by a query) aggregations and groupings are immutable after they are created. If you need a different level of detail or summation, you have to define a new view. With a metric view, you define the metric once (i.e. net revenue), and users can group by any available field. The query engine is responsible for generating the correct computation behind the scenes, and you are able to provide additional details and/or context to ensure that it does.

Why You Should Embrace Metric Views

The main benefits that are usually attributed to metric views are consistency (or reusability you can trust), governance (centralized control via Unity Catalog), scalability (support for complex data/join schemas), and flexibility (available at many points of the data pipeline).

However, certified metric views have the added and significant benefit of empowering Genie Agents to give better answers than would otherwise be obtained from raw tables. Raw tables are ambiguous in many ways (think back to the introductory revenue example), and metric views tackle that ambiguity with the capability to provide additional context natively.

One of my favorite features of metric views that seems to be often overlooked is the fact that you can "tag" metrics with defined synonyms, making them searchable and accessible by their main name or any of the listed alternatives.

Having covered how metric views can supercharge your organization's data and its meaning, let's turn to a few relevant questions and responses.

"We have gold tables, doesn't that already contain the data in the way it needs to be defined?"

Not really. Even in the case that gold tables are in perfect condition, all the necessary metrics are rarely defined in the gold layer—be that because of granularity mismatches, technical hurdles, or other reasons—which means business-specific measures get calculated by users elsewhere, likely in inconsistent ways. 

Gold layer tables tell you what the data shape and content are; they usually do not answer who owns a metric, which filters are allowed, how ratios should aggregate, or how the same definition is reused across BI, APIs, and agents. Metric views, on the other hand, are designed to do all this.

"Do Metric Views only work within databricks?"

No. On the contrary, they can and should be extended to all downstream data assets. You can follow databricks documentation for connecting metric views to external BI tools such as Power BI, Tableau and Sigma. Plus, metric views are queryable from SQL editors, notebooks, dashboards and alerts.

"How upstream should we move business logic?"

As far as possible. This way, regardless of how many users interact with metrics downstream—whether through SQL queries, Genie Agents, etc.—you can ensure that the logic stays trustworthy and intact.

I hope this helps you appreciate how powerful metric views can be; but keep in mind that as fantastic of a tool as they are, a robust semantic layer requires teams to treat business logic as a priority and be disciplined about how they define and manage metrics. Without that discipline, even the best tools will prove insufficient.

Author:
Bianca Beingolea-Joseph
Powered by The Information Lab
1st Floor, 25 Watling Street, London, EC4M 9BR
Subscribe
to our Newsletter
Get the lastest news about The Data School and application tips
Subscribe now
© 2026 The Information Lab