What problem does it solve?
It streamlines the creation of consistent, governed business metrics by letting teams define how measures and dimensions are computed in one reusable YAML-backed model instead of rewriting metric logic in many dashboards and queries.
Core Features & Use Cases
- Reusable metric definitions: Create Unity Catalog metric views that standardize KPIs (for example revenue, orders, conversion, churn) with consistent measure and dimension naming.
- Flexible querying with MEASURE(): Query aggregated metrics safely using MEASURE() and explicit dimensions (avoids SELECT * and inconsistent aggregation).
- Advanced modeling options: Support derived dimensions, ratio measures, filtered measures, star or snowflake joins, window measures, and optional materialization for faster performance.
- Use cases: Build KPI layers for dashboards and SQL, model complex revenue and order analytics, and enable governed metrics across teams with shared definitions.
Quick Start
Use the manage_metric_views tool to create a Unity Catalog metric view for your source table by providing the full metric view name, source, dimensions, and measures, then query it using MEASURE() for the selected measures.