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 the fields used to group, filter, and aggregate them, so you can define metrics once and query them at runtime.

Standard views lock in aggregations and groupings 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 field. 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, fields, 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.