Semantic views let you define a metric once next to your lakehouse data and reuse it in reports and AI agents. Here is what you need, the YAML for a first shared metric, how to publish and test it, and the preview limits to know.
Finance reports one revenue figure, sales reports another, and the new AI agent gives a third. Each was built from the same tables, with a slightly different calculation. Semantic views, a Fabric IQ capability Microsoft released in preview in November 2026, aim to fix that by letting you write a metric's definition once, next to the data in your lakehouse.
We explained the idea in what are semantic views in Power BI and Fabric. Microsoft has now published the documentation, so this post is the practical follow-up: what you need, how to build a first view, how to check it, and what will catch you out while it is in preview.
What do you need before you create a semantic view?
- A lakehouse with Delta tables. In this preview, semantic views can only be created in lakehouses, not warehouses.
- The right permissions. Write permission on the lakehouse to create and edit the view, and the Contributor role or higher in the workspace to publish it.
- A workspace without CI/CD. You cannot publish in a workspace connected to Git, deployment pipelines or Power Platform solutions, or one with workspace-level private links switched on. Use a separate workspace for trials.
- Metrics written in DAX. The definition file is YAML, but each metric's calculation must be DAX for Fabric to publish it.
- An agreed definition. The tool will publish whatever you write. If two teams still disagree about what "net sales" means, settle that first.
Step 1: pick one metric that two teams argue about
Start small. Choose one metric that finance and sales (or operations) both report and regularly disagree on, such as net sales, gross margin or active customers. Write the agreed definition in a sentence, name an owner, and note a figure for a past month that both teams accept as correct. You will use that figure to test the result.
Step 2: create the view in your lakehouse
- 1Open the lakehouse and stay on the Lakehouse view. The New semantic view command does not appear on the SQL analytics endpoint tab.
- 2Select New semantic view on the ribbon, give it a name and select Create.
- 3Fabric creates a folder at Context/Semantic Views/your-view-name with a commented starter file called your-view-name_semantic_view.yaml.
The folder name matters: it becomes the name of the view and of the semantic model Fabric generates. Folder names are case sensitive in OneLake but model names are not, so "Sales" and "sales" will clash.

Step 3: describe the tables, relationship and metric in YAML
The YAML has three main parts. Datasets map a friendly name to a lakehouse table. Relationships join two datasets. Metrics hold the DAX. The rules worth knowing:
- Every file starts with version: 0.2.0.dev0 and a name. The name is required but not used.
- Each dataset needs a name and a schema-qualified source, such as dbo.sales_lines. Sources must be tables, not queries, and columns come from the table itself.
- Relationships run from the many side to the one side and support one column on each side. Every relationship is active, so avoid ambiguous paths.
- Metrics go under expression, then dialects, with the dialect set to DAX. Put the DAX in quotes, and refer to columns by the dataset name you chose, for example 'sales_lines'[net_amount], and to other metrics by name, for example [Net Sales].
- Write a description for every dataset and metric. It flows into the generated model, and it is what helps people and AI agents pick the right measure.
- Use spaces, not tabs, and do not leave empty keys from the starter file. An unfilled key parses as null and fails.
You can split a view across several files, for example one for the tables and one per group of metrics. Publishing merges every .yaml file in the folder, up to 20 files. Files ending .yml are ignored without a warning, so check the extension.
Step 4: publish, then check the numbers against a figure you trust
Right-click the view folder under Context, Semantic Views, and select Publish. Only saved changes are published, and saving on its own does not validate anything.
Publishing merges the YAML, checks it against the lakehouse, writes the compiled model definition to a SystemContext folder and creates or updates a read-only Direct Lake on OneLake semantic model. Errors stop the publish, for example a source table that does not exist. Warnings let it succeed but can quietly skip things, such as a metric with no DAX, so read them every time.
Then test it. Under SystemContext, right-click the view and choose Validate in DQV to run your metrics in DAX query view, and compare the result with the agreed figure from step 1. Publishing proves the structure is valid. It does not prove the business logic is right.
Step 5: use it in reports and share it with the second team
- Reports. Connect to the generated model from Power BI Desktop through the OneLake catalog. Connect works for building reports. Editing the model remotely does not, because the YAML is the master copy.
- Access. The model inherits from the lakehouse: Read on the lakehouse gives Read and Build on the model, Write gives Write. If OneLake security is on, its row-level and object-level rules apply to queries.
- Other lakehouses. A view only sees tables in its own lakehouse. To reuse definitions elsewhere, create a OneLake shortcut to the view folder in the other lakehouse and publish there. When the shared definition changes, republish each view that uses it.
- AI agents. Because the metric now lives in one governed model, a Fabric data agent pointed at it gives the same answer as the report.
What will catch you out in the preview?
- No Git or deployment pipelines. Keep a copy of your YAML in source control yourself until Microsoft adds CI/CD support.
- Last write wins. If two people publish the same view at once, the later publish overwrites the earlier one. Agree who publishes.
- Renaming or deleting breaks things. Republishing after the model is deleted creates a new model and does not reconnect existing reports or agents.
- Limited modelling. No XMLA endpoint, no calculation logic beyond DAX measures, single-column relationships only.
- Security detail. The Context folder does not support OneLake security, and people who can read SystemContext can see the names of restricted tables and columns, though not their data.
- Clean-up is manual. Deleting a view folder does not delete its model. Delete both, then publish another view in the same lakehouse to clear the old output.
There is no separate charge. The YAML is stored in OneLake, and queries against the generated model use the normal Direct Lake capacity meters.
Should you build one now?
Yes, as a trial. One metric, two teams, a non-production workspace, and a figure you can test against will tell you within a day or two whether the approach suits you. Keep your production Power BI semantic models where they are: semantic views complement them, and Microsoft is clear they are not a replacement.
Microsoft has also previewed what comes next, including SQL metrics and importing definitions from existing semantic models. That is the point at which moving established measures across becomes realistic. Until then, the real work is the same as ever: agreeing what each number means. We covered that in data model or ontology.
If you want a second pair of eyes on which metrics to start with, our free Data Assessment looks at where your definitions disagree today.
Related reading
Click any title below to read the full article.
- What is a semantic model, and why does it matter in a data platform? The layer that decides whether anyone trusts the numbers
- How to prepare a Power BI semantic model for Copilot, so it gives answers your finance team will accept
- Fabric IQ and Copilot on your semantic model: a practical guide to conversational analytics
- What is the best data warehouse architecture for Power BI reporting? The star schema, explained
- How should you lay out a medallion architecture in Microsoft Fabric? Seven layouts and how to choose

Kiran Sahiba
Analytics Solutions Consultant
Kiran is an Analytics Solutions Consultant at Hopton Analytics, working across the whole data platform, from ingestion and transformation to semantic models and reporting, in Microsoft Fabric, Azure and Power BI. She builds on the principle that analytics is only as good as the foundations beneath it, a lesson from looking after a dataset of more than 400,000 records. She is a Microsoft Certified Fabric Data Engineer (DP-700) and Power BI Data Analyst (PL-300).
View profile →



