databricks-metric-views

Define governed business metrics in YAML for Unity Catalog.

Updated Mar 19, 2026
One-click install
npx skills add https://github.com/Blackkadder/databricks-apps-and-agents-workshop --skill databricks-metric-views-blackkadder
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: databricks-metric-views
Source: https://github.com/Blackkadder/databricks-apps-and-agents-workshop/tree/main/.claude/skills/databricks-metric-views
Command: npx skills add https://github.com/Blackkadder/databricks-apps-and-agents-workshop --skill databricks-metric-views-blackkadder

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Unity Catalog metric views help teams define reusable, governed business metrics in YAML, separating measure definitions from dimension groupings for flexible querying.

Core Features & Use Cases

  • Define standardized metrics (revenue, orders) and enable cross-team reuse across dashboards and SQL queries
  • Support complex aggregations, window measures, and star/snowflake schema joins
  • Use cases include KPI layers, BI Genie integration, and pre-computed materialization patterns

Quick Start

Create a minimal YAML metric view with at least one dimension and one measure to begin.

Frequently Asked Questions about databricks-metric-views

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I define governed business metrics for KPI dashboards in Unity Catalog?

You can define governed business metrics for Unity Catalog by writing YAML definitions that separate measures from dimension groupings, enabling flexible querying and cross-team reuse across KPI dashboards and SQL queries.

Can I use YAML metric views to join tables in star and snowflake schemas?

Yes, YAML metric views support joining tables across star and snowflake schemas. This allows you to define complex aggregations and multi-dimensional analytics without altering the underlying schema structure.

What Databricks runtime version is required for YAML metric views?

YAML metric views require DBR 17.2 or higher with YAML v1.1 support. This environment ensures proper parsing and execution of dimensions, measures, joins, materialization, and window measures.

How do I create a minimal metric view to start standardizing analytics?

To create a minimal metric view, define a YAML file containing at least one dimension and one measure. This establishes a baseline reusable metric definition for immediate querying and cross-team reporting.

Does Unity Catalog support pre-computed materialization for metric views?

Yes, Unity Catalog supports pre-computed materialization patterns for metric views. This feature helps optimize query performance for complex aggregations and large-scale multi-dimensional analytics.

What is the best way to standardize revenue and orders metrics for cross-team reporting?

The best way to standardize metrics like revenue and orders is defining them as governed YAML metric views in Unity Catalog, separating measure logic from dimensions to ensure consistent cross-team reporting.