Semantic view or semantic model in Fabric: which to use?

Semantic views (preview since November 2026) define tables, relationships and DAX metrics as YAML files next to the data in a Fabric lakehouse, and publishing one creates a read-only Direct Lake on OneLake semantic model. How they relate to Power BI semantic models, a worked example whose numbers add up, sharing one definition across lakehouses, permissions, and the preview limits that decide the choice today.

Short answer: a semantic view is a set of YAML files stored in a lakehouse (under Context/Semantic Views/<name>/) that describes tables, relationships and metrics written in DAX. Selecting Publish turns it into a read-only Direct Lake on OneLake semantic model with the same name, which reports and agents query. The YAML stays the source of truth: you change the files and publish again. It complements Power BI semantic models rather than replacing them. Use a view when one definition of "revenue" must be shared across lakehouses and teams; author a semantic model directly when you need other storage modes, other sources, Git and deployment pipelines, or the full modelling tools. Semantic views are in preview.

Every company with more than one Power BI model has met this: three models, three slightly different "net revenue" measures, and a meeting about why the numbers differ. A semantic view puts the definition next to the data, in plain text files that can be shared by shortcut, so every model built from it calculates revenue the same way.

How do the two fit together?

  1. 1
    YAML in the lakehouseContext/Semantic Views/sales: datasets, relationships, metrics; you edit these
  2. 2
    Publishvalidates the files and compiles them to TMDL in SystemContext
  3. 3
    Generated semantic modelread-only, Direct Lake on OneLake, same name as the view
  4. 4
    Reports and agentsconnect to the model like any other semantic model
From YAML files to a report

The generated model is a normal semantic model to its readers, but nobody edits it. You can open it in web modelling to inspect it, and connect to it from Power BI Desktop to build a report; editing it there, XMLA access and building an ontology on it are not supported.

What does a view look like?

Take a lakehouse with two tables, dbo.orders and dbo.customers. A schema file describes them and the relationship:

version: 0.2.0.dev0
name: sales
description: Orders and customers for revenue reporting.
datasets:
  - name: orders
    source: dbo.orders
    description: One row per order.
  - name: customers
    source: dbo.customers
    description: One row per customer with its segment.
relationships:
  - name: orders_to_customers
    from: orders
    to: customers
    from_columns:
      - CustomerId
    to_columns:
      - CustomerId

A second file in the same folder holds the metrics. The DAX uses the dataset names from the YAML ('orders'), not the source table names:

version: 0.2.0.dev0
name: sales
metrics:
  - name: Gross Sales
    description: Order amount before discounts.
    expression:
      dialects:
        - dialect: DAX
          expression: "SUM('orders'[Amount])"
  - name: Net Sales
    description: Order amount after discounts.
    expression:
      dialects:
        - dialect: DAX
          expression: "SUM('orders'[Amount]) - SUM('orders'[Discount])"

Publishing merges both files into one definition and builds the model.

Do the numbers add up?

Five orders, two segments:

OrderIdCustomerSegmentAmountDiscount
1C1Retail20020
2C2Business50050
3C1Retail1500
4C3Business30030
5C2Business25025
Total3 customers2 segments1,400125
The sample orders and what the metrics return

So Gross Sales is 1,400 and Net Sales 1,400 - 125 = 1,275. By segment, Retail is 350 - 20 = 330 and Business 1,050 - 105 = 945, and 330 + 945 = 1,275. A quick check after publishing, in DAX query view on the generated model:

EVALUATE
SUMMARIZECOLUMNS (
    'customers'[Segment],
    "Gross", [Gross Sales],
    "Net", [Net Sales]
)
ORDER BY 'customers'[Segment]

If Business does not show 945, the relationship or a column name in the YAML is wrong.

How do two teams share one definition?

A view only sees tables in its own lakehouse. To reuse the definition elsewhere, create a OneLake shortcut to the view folder (or a subfolder, such as only the metrics) in the other lakehouse, then publish there. Each lakehouse supplies its own data with the same table and column names, and gets its own generated model:

Shared metrics folderGross Sales and Net Sales, written once
Austria lakehouseshortcut to the metrics, its own orders; publishes its own model
Germany lakehouseshortcut to the metrics, its own orders; publishes its own model
One revenue definition, two regional lakehouses

When the shared metric changes, republish each consuming view; the models are not combined or updated by themselves.

Which one should you choose today?

You needSemantic viewSemantic model
Metrics next to lakehouse data, shared by shortcutyesno
Import, DirectQuery or compositeno, Direct Lake onlyyes
Sources outside one lakehousenoyes
Git and deployment pipelinesnoyes
Editing in Desktop or XMLA toolsno, read-onlyyes
Relationships on several columnsnoyes
Semantic view or semantic model, by requirement

Cost is not a deciding factor: a view has no meter of its own; its files use OneLake storage and queries on the generated model use the usual Direct Lake meters. Today, a semantic view suits a team that keeps its data in lakehouses and wants plain-text, shareable metric definitions. A production model with CI/CD, several sources or advanced modelling stays a semantic model.

Who can do what?

Creating and publishing needs Write on the lakehouse and Contributor or higher in the workspace. The generated model takes its permissions from the lakehouse: lakehouse Read gives model Read and Build, lakehouse Write gives model Write. The generated model supports OneLake security; the Context folder does not. If a view includes tables or columns hidden by object-level security, the model still enforces it, but people who can read SystemContext can see the names of those objects.

What goes wrong?

  • Publishing in a Git-connected workspace. Not possible in the preview, nor with deployment pipelines, Power Platform solutions or workspace-level private links.
  • DAX that uses the source table name. Write 'orders'[Amount], the dataset name, not dbo.orders.
  • Editing SystemContext. It is generated output. Edit the YAML under Context and publish again.
  • Renaming the view folder or the model. They are not kept in step; a rename can stop later publishes from updating the original model, and republishing after deleting the model creates a new one without the old connections.
  • Two people publishing at once. Publish does not lock the files, and the last one wins.
  • A name clash. Publishing fails if the workspace already has another item with the view's name.

Where can you check this?

Where do you start?

Pick the one metric your teams argue about most, write it as a semantic view in a test lakehouse, publish, and compare its result with each existing model. Direct Lake in Power BI explains the storage mode the generated model uses, and the star schema shows how to shape the tables the view describes.

Keep reading

More from the blog.

Every post

Next

Building this? Say hello.

A question about this post, a pattern you would build differently, or the next thing you want written out: Behnia reads every message.