# Databricks Metric Views

> Native semantic layer of Unity Catalog that defines a metric once and computes it for any grouping at query time, across notebooks, dashboards, Genie, and external BI tools, with optional materialization.

Source: https://toolsfordata.com/tools/databricks-metric-views/ · Updated 2026-12-02

[Website](https://docs.databricks.com/aws/en/uc-semantics/metric-views) · [Docs](https://docs.databricks.com/aws/en/uc-semantics/metric-views)

Best for: Databricks teams that want governed metrics in Genie and dashboards, with Power BI, Tableau, and Sigma reading the same definitions.

## Overview

- Core Strength: Metrics defined once in Unity Catalog
- Best For: Databricks teams using Genie and dashboards
- Deployment Model: Part of Databricks
- Pricing: Included; Databricks compute
- Notable Caveat: Databricks only; a materialized view can't use row filters or column masks
- Modeling: Partial — derived metrics, multi-fact, as code
- Portability: Partial — import, export
- Query Interfaces: Partial — SQL, REST/GraphQL, MCP
- BI & Spreadsheets: Full — BI tools, spreadsheets, embedded
- AI Agents: Full — chat, AI modeling, verified queries, evals…
- Performance: Full — pre-aggregations, result cache
- Governance: Partial — row security, lineage
- Security & Access: Partial — SSO, SCIM, RBAC, audit log

## What it's used for

Databricks Metric Views are used to define a metric once in Unity Catalog and compute it for any grouping at query time, in notebooks, dashboards, Genie and external BI tools.

## Semantic models

Measures are defined apart from the fields that group them, over star and snowflake joins. Measures can reference other measures, window measures cover running totals and period over period, and one-to-many joins aggregate each fact at its own grain. Views are YAML and can be managed as dbt models. No drill hierarchies.

## Portability

Genie Code imports a Tableau or Power BI file as a metric view, and a view can be published to Power BI as a semantic model (beta). Apache Ossie is not described in the docs checked.

## Workflows

Any SQL connection queries views with the MEASURE function; Tableau and Sigma connect over JDBC or ODBC. Google Sheets and Excel query them through Databricks connectors, and AI/BI dashboards embed in external apps.

## AI

Genie Agents answer questions from metric views, using synonyms, example SQL and trusted assets. Genie Code drafts a view from a description, benchmarks score an agent on test questions, and the managed Genie One MCP server is generally available.

## Query optimizations

Materializations refresh on a schedule and queries are rewritten to use them, but not on views with row filters or column masks. Databricks SQL caches results.

## DataOps

The editor validates the YAML; checks on downstream references are not described. Queries land in the query history system table.

## Governance

Row filters, column masks and attribute-based policies apply, and Unity Catalog captures lineage down to columns and dashboards.

## Security

Metric views follow Unity Catalog privileges, with SSO, SCIM, AWS PrivateLink and audit logs.

## Deployment

Metric views exist only in Databricks.

## Pricing

Metric views come with Databricks: queries and materializations use Databricks compute.

## Review

Strengths:
- Metrics are Unity Catalog objects, with its lineage, privileges and masks.
- Genie, dashboards, Excel, Sheets, Tableau and Sigma read the same definitions.
- Materializations with automatic query rewriting.

Caveats:
- Databricks only.
- Materializations don't work with row filters or column masks.
- Power BI publishing is in beta.

Recommendation: Use Metric Views if your data and users are on Databricks and Genie is the main consumer. Choose Cube or AtScale when other warehouses need the same metrics, or the dbt Semantic Layer to keep them in dbt.

## Pricing

- Model: usage-based
- Entry team price: Included with Databricks (compute for queries)
- Source: https://docs.databricks.com/aws/en/uc-semantics/metric-views (checked 2026-12-01)

## Features

### Semantic Models

- Metrics & Dimensions: Yes — Measures are defined separately from the fields used to group and filter them. ([source](https://docs.databricks.com/aws/en/uc-semantics/metric-views))
- Joins & Relationships: Yes — Star and snowflake joins with cardinality; relationships between metric views are in beta. ([source](https://docs.databricks.com/aws/en/uc-semantics/metric-views/joins))
- Calculated & Derived Metrics: Yes — Measures can reference other measures, and window measures cover running totals and period over period. ([source](https://docs.databricks.com/aws/en/uc-semantics/metric-views/advanced-techniques))
- Hierarchies: No — The full YAML reference has no drill hierarchies. ([source](https://docs.databricks.com/aws/en/uc-semantics/metric-views/yaml-reference))
- Multi-Fact Models: Yes — A one-to-many join turns the joined table into a fact source aggregated independently at the source grain. ([source](https://docs.databricks.com/aws/en/uc-semantics/metric-views/joins))
- Definitions as Code: Yes — Metric views are YAML definitions that can be managed as dbt models. ([source](https://docs.getdbt.com/reference/resource-configs/databricks-configs))

### Portability

- Model Import: Yes — Genie Code imports a Tableau or Power BI file as a metric view. ([source](https://docs.databricks.com/aws/en/uc-semantics/metric-views/bi-tools))
- Model Export: Yes — A metric view can be published to Power BI as a semantic model. In beta. ([source](https://docs.databricks.com/aws/en/uc-semantics/metric-views/bi-tools))
- Apache Ossie Support: Unknown — Not described in the docs checked. ([source](https://docs.databricks.com/aws/en/uc-semantics/metric-views))

### Workflows

- SQL API: Yes — Queried with SQL and the MEASURE function from any SQL-based connection. ([source](https://docs.databricks.com/aws/en/uc-semantics/metric-views/query))
- REST / GraphQL API: Yes — The Genie Agents API answers questions from applications. ([source](https://docs.databricks.com/aws/en/genie/conversation-api))
- MDX / DAX API: No — External tools connect through SQL. ([source](https://docs.databricks.com/aws/en/uc-semantics/metric-views/bi-tools))
- BI Tool Integrations: Yes — Tableau, Sigma and other JDBC or ODBC tools; publishing to Power BI as a semantic model is in beta, and custom SQL works. ([source](https://docs.databricks.com/aws/en/uc-semantics/metric-views/bi-tools))
- Spreadsheet Integration: Yes — Metric views can be queried from Google Sheets with the connector and from Excel with the add-in. ([source](https://docs.databricks.com/aws/en/uc-semantics/metric-views/query))
- Embedded Analytics: Yes — AI/BI dashboards can be embedded in external applications. ([source](https://docs.databricks.com/aws/en/dashboards/embedding/))
- Multi-Warehouse Support: No — Metric views are Unity Catalog objects queried on Databricks compute. ([source](https://docs.databricks.com/aws/en/uc-semantics/metric-views))
- dbt Integration: Yes — dbt manages metric views with the metric_view materialization. ([source](https://docs.getdbt.com/reference/resource-configs/databricks-configs))
- Data Catalog Integration: Unknown — Publishing to a catalog outside its own platform is not described in the docs checked. ([source](https://docs.databricks.com/aws/en/uc-semantics/metric-views/manage))

### AI & Agents

- MCP Server: Yes — The managed Genie One MCP server is generally available. ([source](https://docs.databricks.com/aws/en/generative-ai/mcp/managed-mcp))
- Natural Language Query: Yes — Genie Agents answer questions and can use metric views. ([source](https://docs.databricks.com/aws/en/uc-semantics/metric-views/query))
- AI-Assisted Modeling: Yes — Genie Code drafts a metric view from a description. ([source](https://docs.databricks.com/aws/en/uc-semantics/metric-views/create))
- AI Metadata & Synonyms: Yes — Synonyms, display names and formats on fields and measures. ([source](https://docs.databricks.com/aws/en/uc-semantics/metric-views/yaml-reference))
- Verified Queries: Yes — Genie Agents use example SQL and trusted assets. ([source](https://docs.databricks.com/aws/en/genie/trusted-assets))
- AI Memory: Yes — Genie One remembers details a user asks it to save and applies them in later conversations. In beta. ([source](https://learn.microsoft.com/en-us/azure/databricks/ai-bi/release-notes/2026))
- Agent Evaluation: Yes — Benchmarks score a Genie Agent on test questions. ([source](https://docs.databricks.com/aws/en/genie/benchmarks))

### Query Optimizations

- Pre-Aggregations: Yes — Materializations are refreshed on a schedule, and queries are rewritten to use them; not available with row filters or column masks. ([source](https://docs.databricks.com/aws/en/uc-semantics/metric-views/materialization))
- Query Caching: Yes — Databricks SQL caches query results. ([source](https://docs.databricks.com/aws/en/sql/user/queries/query-caching))

### DataOps

- Model Testing & Validation: Unknown — The editor validates YAML; checks of downstream references are not described. ([source](https://docs.databricks.com/aws/en/uc-semantics/metric-views))
- Orchestration Integration: Unknown — Materializations refresh on Lakeflow schedules; triggering from outside orchestrators is not described in the docs checked. ([source](https://docs.databricks.com/aws/en/uc-semantics/metric-views/materialization))
- Observability & Monitoring: Yes — The query history system table records queries. ([source](https://docs.databricks.com/aws/en/admin/system-tables/query-history))

### Data Governance

- Row & Column-Level Security: Yes — Row filters, column masks and attribute-based policies apply, but such views can't be materialized. ([source](https://docs.databricks.com/aws/en/uc-semantics/metric-views/materialization))
- Data Lineage: Yes — Unity Catalog captures lineage for tables and views, down to columns and dashboards. ([source](https://docs.databricks.com/aws/en/data-governance/unity-catalog/data-lineage))

### Security

- SSO: Yes — Single sign-on for the account console and workspaces. ([source](https://docs.databricks.com/aws/en/security/auth/single-sign-on/))
- RBAC: Yes — Metric views follow Unity Catalog privileges. ([source](https://docs.databricks.com/aws/en/uc-semantics/metric-views/manage))
- Audit Log: Yes — Audit log services and events are documented; the system table is in public preview. ([source](https://docs.databricks.com/aws/en/admin/account-settings/audit-logs))
- Compliance Certifications: Unknown — The trust center page could not be read. ([source](https://docs.databricks.com/aws/en/security/privacy/))
- SCIM Provisioning: Yes — Users and groups sync with SCIM. ([source](https://docs.databricks.com/aws/en/admin/users-groups/scim/))
- Private Networking: Yes — AWS PrivateLink. ([source](https://docs.databricks.com/aws/en/security/network/))

### Deployment

- Multi-Environment Support: Unknown — Not described for metric views in the docs checked. ([source](https://docs.databricks.com/aws/en/uc-semantics/metric-views/manage))
- SaaS Deployment: Yes — Part of the Databricks platform. ([source](https://docs.databricks.com/aws/en/uc-semantics/metric-views))
- Self-Hosted Deployment: No — Runs only in Databricks. ([source](https://docs.databricks.com/aws/en/uc-semantics/metric-views))
- Cloud-Native App: Yes — A feature of Databricks itself. ([source](https://docs.databricks.com/aws/en/uc-semantics/metric-views))
- Open Source: No — Documented as a feature of the Databricks platform. ([source](https://docs.databricks.com/aws/en/uc-semantics/metric-views))

## Integrations

8 integrations, each sourced from the vendor docs.

- AI Agents: Databricks Genie
- BI: Tableau, Sigma, Power BI
- Data Platform: Databricks
- Data Transformation: dbt
- Spreadsheets: Microsoft Excel, Google Sheets

## Alternatives

- [Snowflake Semantic Views](https://toolsfordata.com/tools/snowflake-semantic-views/): The same idea on Snowflake: metrics as schema objects, used by Cortex Agents.
- [AtScale](https://toolsfordata.com/tools/atscale/): Consider AtScale if Excel and Power BI users need live XMLA and DAX connections over Databricks and other warehouses.
- [Cube](https://toolsfordata.com/tools/cube/): Consider Cube when the metrics must reach several warehouses, with a DAX API for Power BI and pre-aggregations of its own.
- [dbt Semantic Layer](https://toolsfordata.com/tools/dbt-semantic-layer/): Consider the dbt Semantic Layer if your dbt project runs on Databricks and metrics should live next to the models.
- [Timbr](https://toolsfordata.com/tools/timbr/): Consider Timbr for an ontology in SQL over Databricks, exposed in Unity Catalog, with MDX for Excel.
- [Cube Core](https://toolsfordata.com/tools/cube-core/): The open-source option: a free engine you host, with SQL and REST APIs over Databricks.
