Tutorial: Create a Direct Lake semantic model and Power BI report
Applies to: ✅ SQL analytics endpoint and Warehouse in Microsoft Fabric
In this tutorial, you will create a Direct Lake semantic model and a Power BI report.
Note
This tutorial forms part of an end-to-end scenario. In order to complete this tutorial, you must first complete these tutorials:
Create a semantic model
In this task, learn how to create a Direct Lake semantic model based the Wide World Importers
warehouse.
Ensure that the workspace you created in the first tutorial is open.
Open the
Wide World Importers
warehouse.Select the Reporting tab.
On the Reporting ribbon, select New semantic model.
In the New semantic model window, in the Direct Lake semantic model name box, enter
Sales Model
.Expand the
dbo
schema, expand the Tables folder, and then check thedimension_city
andfact_sale
tables.Select Confirm.
To open the semantic model, return to the workspace landing page, and then select the
Sales Model
semantic model.To open the model designer, on the menu, select Open data model.
To create a relationship, in the model designer, on the Home ribbon, select Manage relationships.
In the Manage relationship window, select + New relationship.
In the New relationship window, complete the following steps to create the relationship:
In the Manage relationship window, select Close.
Create a Power BI report
In this task, learn how to create a Power BI report based on the semantic model you created in the first task.
On the Home ribbon, select New report.
In the report designer, complete the following steps to create a column chart visual:
In the Data pane, expand the
fact_sale
table, and then check theProfit
field.In the Data pane, expand the
dimension_city
table, and then check theSalesTerritory
field.If necessary, resize the column chart visual by dragging the corner of the visual.
Select anywhere on the blank canvas to ensure that the column chart visual is no longer selected.
Complete the following steps to create a map visual:
In the Visualizations pane, select the Azure Map visual.
In the Data pane, from inside the
dimension_city
table, drag theStateProvince
fields to the Location well in the Visualizations pane.In the Data pane, from inside the
fact_sale
table, check theProfit
field to add it to the map visual Size well.
If necessary, reposition and resize the map visual to place it beneath the column chart visual at the bottom-left region of the report page.
Select anywhere on the blank canvas to ensure that the map visual is no longer selected.
Complete the following steps to create a table visual:
In the Visualizations pane, select the Table visual.
In the Data pane, check the following fields:
SalesTerritory
from thedimension_city
tableStateProvince
from thedimension_city
tableProfit
from thefact_sale
tableTotalExcludingTax
from thefact_sale
table
If necessary, reposition and resize the table visual to place it in an empty region of the report page.
Verify that the completed design of the report page resembles the following image.
To save the report, on the Home ribbon, select File > Save.
In the Save your report window, in the Enter a name for your report box, enter
Sales Analysis
.Select Save.