Sub topic 3
Touring Power BI Desktop’s Model View
Assume you can open a Power BI report and understand rows, columns, and tables. This chapter focuses on how the model supports report visuals.
Touring Model view
Select the Model icon in the left-hand view switcher. Model view displays tables as boxes. Each box lists columns and measures. Lines between boxes represent relationships.
Use this view to understand how tables connect before building complex visuals. You can move tables, expand or collapse their fields, and select a relationship to inspect its settings.
Relationships, cardinality, and filter direction
A relationship connects matching columns, such as Customers[CustomerID] and Sales[CustomerID]. Cardinality describes how many matching rows exist on each side:
- One-to-many (1:*) is common. One customer has many sales.
- One-to-one (1:1) matches one row in each table.
- Many-to-many (:) allows repeated matching values on both sides and needs careful design.
Cross-filter direction controls how filters travel. Single direction usually sends filters from the one-side table to the many-side table. Both directions can filter each table from the other, but may create ambiguous or unexpected results.
A first measure with DAX
A measure is a calculation evaluated when a visual needs it. DAX is Power BI’s formula language. Create a measure from the table’s context menu or the ribbon:
Total Sales = SUM(Sales[SalesAmount])
Order Count = COUNTROWS(Sales)Measures appear in the Data pane and can be used across report pages. Unlike a calculated column, a measure changes its result when filters or slicers change.
Where Power Query Editor fits
Choose Transform data to open Power Query Editor. Use it to clean and reshape data before it enters the model, such as changing types, removing columns, or combining files. Close and apply the query to load those changes.
How the three views work together
Report view uses fields and measures to build visuals. Table view lets you inspect loaded rows and column properties. Model view shows how tables relate. All three views use the same underlying model.
Saving your work and publishing
Save the report as a .pbix file. Publishing uploads the report and its model to the Power BI service, where users can view and share it according to workspace permissions. Saving locally and publishing are separate actions.
Exercise
A visual shows incorrect totals after you add a customer filter. Which view should you inspect first, and what should you check?
Show answer
Open Model view. Check that the customer-to-sales relationship uses the correct columns, cardinality, and filter direction.