databricks-metric-views

Define and manage governed business metrics in Unity Catalog using YAML.

3|1|Updated May 12, 2025
One-click install
npx skills add https://github.com/Aradhya0510/databricks-cv-accelerator --skill databricks-metric-views-aradhya0510
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: databricks-metric-views
Source: https://github.com/Aradhya0510/databricks-cv-accelerator/tree/main/.github/skills/databricks-metric-views
Command: npx skills add https://github.com/Aradhya0510/databricks-cv-accelerator --skill databricks-metric-views-aradhya0510

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill enables the definition, creation, querying, and management of standardized, governed business metrics within Unity Catalog using a declarative YAML syntax, ensuring consistency across teams and tools.

Core Features & Use Cases

  • Define Reusable Metrics: Create business KPIs like revenue, order counts, and conversion rates that can be consistently used across dashboards, Genie, and SQL.
  • Complex Aggregations & Window Measures: Supports ratios, distinct counts, filtered measures, and advanced window calculations like moving averages and running totals.
  • Star/Snowflake Schema Modeling: Declaratively define joins for modeling dimensional data models directly within metric definitions.
  • Use Case: Define a "Total Revenue" metric once in YAML, and then use it across multiple BI dashboards and natural language queries, ensuring everyone is using the same, accurate definition.

Quick Start

Use the databricks-metric-views skill to create a metric view for orders data.

Frequently Asked Questions about databricks-metric-views

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

FAQPage Schema
How do I standardize business metrics in Unity Catalog?

Define governed business metrics in Unity Catalog using declarative YAML syntax. This approach standardizes KPIs like revenue or conversion rates, ensuring they are consistently reused across BI dashboards, SQL, and Genie.

Does Unity Catalog support complex aggregations and window measures for KPIs?

Yes, Unity Catalog supports complex aggregations and window measures for KPIs. You can declaratively define ratios, distinct counts, filtered measures, and advanced calculations like moving averages and running totals.

Can I model star and snowflake schemas when defining business metrics?

Yes, you can model star and snowflake schemas when defining business metrics. The skill allows you to declaratively define joins for dimensional data modeling directly within your YAML metric definitions.

Do I need a specific Databricks Runtime to create governed metric views?

Yes, creating governed metric views requires Databricks Runtime 17.2 or higher. You also need SQL warehouse access to define, query, and manage your standardized business metrics in Unity Catalog.

What is the best way to define reusable KPIs for BI dashboards and Genie?

The best way to define reusable KPIs is using declarative YAML to create metric views in Unity Catalog. By defining a metric once, you ensure everyone uses the same accurate definition across multiple BI dashboards and Genie queries.