Learn  /  Guides

Semantic views explained: how Fabric, Snowflake and Databricks let you define "revenue" once for every report and AI agent

Ask three teams for last quarter's revenue and you often get three numbers. Semantic views are the fix every platform is now shipping: business definitions stored next to the data, used by reports and AI agents alike.

Guide8 min readUpdated 23 November 2026
SQLPower BISnowflakeDatabricks
All guides and cheat sheets

In November Microsoft added semantic views to Fabric as a preview. Snowflake has semantic views too, and Databricks has metric views. The names differ slightly, but the idea is the same: store tables, relationships, dimensions and metrics as definitions in the data platform, so a Power BI report, a SQL query and an AI agent all calculate "revenue" the same way. Here is how each works and how to start.

Why every platform is shipping them

Metrics used to live inside BI tools: a DAX measure in Power BI, a calculated field in Tableau. That works while people only look at reports. Now AI agents write SQL, chat assistants answer questions and notebooks need the same numbers. If "revenue" is defined only inside one report file, every other tool has to guess. A semantic view moves the definition down to the platform, where every tool can read it. Our guide to semantic layers for AI agents covers the wider idea.

Tablesorders, customers, products
Semantic viewjoins, dimensions, metrics
Consumersreports, SQL, notebooks, AI agents
Same answerrevenue means one thing

The three side by side

Fabric semantic viewsSnowflake semantic viewsDatabricks metric views
StatusPreview (November 2026)Generally availableGenerally available
Where it livesDefinition files in a lakehouse in OneLakeA schema-level object in SnowflakeA view in Unity Catalog
How you write itAuthoring in Fabric, stored as YAML filesSQL: CREATE SEMANTIC VIEWYAML inside CREATE VIEW ... WITH METRICS
How you query itThrough the generated Direct Lake model (DAX, Power BI)SELECT * FROM SEMANTIC_VIEW(...)MEASURE(metric) in SQL
Used by AIData agents, Microsoft CopilotCortex Analyst and Cortex agentsGenie
SharingOneLake shortcuts to the view folderGrants, data sharingUnity Catalog grants, Delta Sharing

Snowflake: a semantic view in SQL

A semantic view names its tables and keys, the relationships between them, and the facts, dimensions and metrics built on top:

SQL
CREATE OR REPLACE SEMANTIC VIEW sales_sv
  TABLES (
    orders    AS shop.public.orders    PRIMARY KEY (order_id),
    customers AS shop.public.customers PRIMARY KEY (customer_id)
  )
  RELATIONSHIPS (
    orders_to_customers AS orders (customer_id) REFERENCES customers
  )
  FACTS (
    orders.order_amount AS amount
  )
  DIMENSIONS (
    customers.customer_region AS region,
    orders.order_month AS DATE_TRUNC('month', order_date)
  )
  METRICS (
    orders.total_revenue AS SUM(orders.order_amount),
    orders.order_count AS COUNT(orders.order_id)
  );

SELECT * FROM SEMANTIC_VIEW(
  sales_sv
  DIMENSIONS customers.customer_region
  METRICS orders.total_revenue
);

You ask for dimensions and metrics; Snowflake writes the joins and the GROUP BY. In November Snowflake made materializations generally available for faster queries and added many-to-many relationships in preview, as covered in our Snowflake November update.

Databricks: a metric view in YAML

A metric view wraps a YAML definition in a SQL statement. Dimensions and measures are expressions over one source table, and joins can be declared in the YAML too:

SQL
CREATE VIEW main.sales.orders_metrics
WITH METRICS
LANGUAGE YAML
AS $$
version: 1.1
source: main.sales.orders
dimensions:
  - name: Region
    expr: region
  - name: Order month
    expr: DATE_TRUNC('MONTH', order_date)
measures:
  - name: Revenue
    expr: SUM(amount)
  - name: Orders
    expr: COUNT(1)
$$;

SELECT `Order month`, MEASURE(Revenue) AS revenue
FROM main.sales.orders_metrics
GROUP BY ALL;

The MEASURE() function makes ratios safe: a measure such as average order value is recalculated at whatever level you group by, instead of averaging averages. Genie spaces and AI/BI dashboards can use metric views directly.

Fabric: semantic views in OneLake (preview)

Fabric's version is the newest. You create a semantic view in a lakehouse, describing datasets, relationships, business metrics and their meaning. When you publish it, Fabric creates a managed, read-only Direct Lake on OneLake semantic model, which Power BI reports and data agents use like any other model.

What to know about the preview

Lakehouses only
In this preview, semantic views can only be created in lakehouses.
Definitions, not data
The view stores definitions; each team supplies its own data and publishes the view in its own lakehouse.
Sharing
Share a view folder through OneLake shortcuts, without copying its YAML.
Permissions
You need Write permission on the lakehouse and Contributor or higher on the workspace; the generated model inherits access from the lakehouse.
Limits
The generated model is read-only: Power BI Desktop can connect to build reports but not edit it, and XMLA endpoint access is not supported.
Costs
Definition files use OneLake storage; queries use the normal Direct Lake meters.

How to start

  1. 1

    Pick five metrics

    Choose the numbers people argue about most: revenue, active customers, margin, churn, orders.

  2. 2

    Write the definitions in plain English first

    Which table, which filter, which date, which currency.

  3. 3

    Build one semantic view

    On whichever platform holds the data, with only those five metrics.

  4. 4

    Point one report and one agent at it

    Check that both give the same answer to the same question.

  5. 5

    Retire the copies

    Remove the duplicate calculations from reports once the view is trusted.

Check your understanding

1/3What does a semantic view store?

2/3How do you query a Databricks metric view?

3/3What does publishing a Fabric semantic view create?

More: star schema data modelling, the Power BI November update and Snowflake vs Databricks for AI agents.

Sources: Microsoft Learn "Semantic views (preview)" (updated 17 November 2026) and the Power BI November 2026 feature summary; Snowflake documentation for CREATE SEMANTIC VIEW and its November 2026 release notes; Databricks documentation for metric views. Check each platform's documentation for the exact syntax supported by your version.

Alessandro Ecclesie AgazziWritten by Alessandro Ecclesie Agazzi, analytics engineer in London. Updated 23 November 2026. About me

Found this useful?

New guides and "what's new" explainers on data and AI land here regularly. Follow along on LinkedIn, or share this one with a colleague.