Skip to main content

Unity Catalog metric views

Metric views are the core implementation of Unity Catalog business semantics in Unity Catalog. They provide a centralized way to define and manage business metrics by separating measure definitions from dimension groupings, so you can define metrics once and query them across any dimension at runtime.

Standard views lock in aggregations and dimensions at creation time. With a metric view, you define the metric once — for example, sum of revenue divided by distinct customer count — and users can group by any available dimension. The query engine generates the correct computation.

Diagram showing that metric views are defined on source tables, views, and queries and consumed from code and no code interfaces.

Get started

Use the following pages to create, query, and manage metric views.

Core features

Use the following pages to learn about modeling, materialization, and agent metadata.

    • Model metric views
    • Define sources, dimensions, measures, and filters. Model relationships using star and snowflake schemas with multi-level joins.
    • Materialization for metric views
    • Pre-compute and incrementally refresh aggregations. The query engine automatically rewrites queries to use materialized views when appropriate. Experimental.
    • Agent metadata in metric views
    • Add synonyms, display names, and formatting rules to improve AI agent accuracy and ensure consistent metric display across tools.