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?
- 1YAML in the lakehouseContext/Semantic Views/sales: datasets, relationships, metrics; you edit these
- 2Publishvalidates the files and compiles them to TMDL in SystemContext
- 3Generated semantic modelread-only, Direct Lake on OneLake, same name as the view
- 4Reports and agentsconnect to the model like any other semantic model
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:
- CustomerIdA 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:
| OrderId | Customer | Segment | Amount | Discount |
|---|---|---|---|---|
| 1 | C1 | Retail | 200 | 20 |
| 2 | C2 | Business | 500 | 50 |
| 3 | C1 | Retail | 150 | 0 |
| 4 | C3 | Business | 300 | 30 |
| 5 | C2 | Business | 250 | 25 |
| Total | 3 customers | 2 segments | 1,400 | 125 |
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:
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 need | Semantic view | Semantic model |
|---|---|---|
| Metrics next to lakehouse data, shared by shortcut | yes | no |
| Import, DirectQuery or composite | no, Direct Lake only | yes |
| Sources outside one lakehouse | no | yes |
| Git and deployment pipelines | no | yes |
| Editing in Desktop or XMLA tools | no, read-only | yes |
| Relationships on several columns | no | yes |
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, notdbo.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?
- Microsoft Learn: Semantic views (preview)
- Microsoft Learn: Tutorial: Build a semantic view
- Microsoft Learn: Semantic view YAML syntax reference
- Microsoft Learn: What's new in Power BI, November 2026
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.