Sub topic 6
Moving between views
This chapter assumes you have installed Power BI Desktop, opened it, and loaded at least one table with Get data. You should be comfortable with what a table and a column are. Here you will learn how the view switcher works, what each view is for, and the errors people commonly hit when moving between views.
The view switcher
Power BI Desktop shows the same loaded data through different views. A view is a workspace with its own layout and tools. You move between views with the view switcher, a vertical strip of icons on the left edge of the window.
The switcher normally shows these icons, from top to bottom:
| Icon name | View | Main purpose |
|---|---|---|
| Report | Report view | Build pages of visuals |
| Table | Table view | Inspect rows and columns of loaded data |
| Model | Model view | See tables and manage relationships |
Depending on your version and settings, extra icons can appear below these, such as DAX query view or TMDL view. This tutorial covers only the three above. The selected view is highlighted with a colored bar next to its icon.
Hover over an icon to see its name. The strip can look different on narrow windows or after Microsoft updates the interface, so rely on the names in the tooltips rather than on the exact position or artwork.
What the switcher does not change
Switching views does not reload data, discard work, or create a copy of your model. All three views read and edit one model held in memory. The switcher only changes which tools you see.
The current view is saved in the .pbix file. When you reopen a report, Power BI Desktop usually returns you to the view you were last in.
What each view is for
Report view
Report view is where you design the output people will read. It has a canvas, a Pages tab, and the Filters, Visualizations, and Data panes. You drag fields onto the canvas to make charts, tables, cards, and slicers. A later chapter tours this view in detail.
Table view
Table view shows the data of one table at a time as a grid. Use it to check that values loaded correctly, to see data types, and to select a column and change its properties. It is a data inspector, not a spreadsheet. You cannot type over a cell to correct a value.
Model view
Model view shows each table as a box in a diagram. Lines between boxes are relationships. Use it to create or edit relationships and to arrange tables visually. It shows structure, not row values.
A mental model
Each view answers a different question about the same model.
Because there is one model, a change in one view appears in the others. If you rename a column in Table view, the new name shows in the Data pane in Report view and in the table box in Model view.
Moving between views in practice
Follow these steps with any table loaded.
- Click the Report icon. You see an empty canvas, or your existing visuals.
- Click the Table icon. The central area changes to a grid, and the Data pane lists your tables.
- Click a table name in the Data pane. The grid shows that table's rows.
- Click the Model icon. The central area shows a diagram of boxes.
- Click the Report icon again. Your earlier page and visuals are exactly as you left them.
The Data pane stays on the right in all three views. You can use it as a shared navigation tool.
Selection carries across views
Selecting a table or column in the Data pane often keeps that selection when you switch views. For example, select a table in Table view, then open Model view. That table's box is usually highlighted, and its properties show in the Properties pane. This makes it quick to inspect one object from several angles.
Selection behavior varies slightly between versions. If a selection does not carry across, click the object again in the new view.
Which view for which task
Choosing the right view saves time. Use the table below as a guide.
| Task | Best view |
|---|---|
| Add a chart or slicer | Report |
| Check whether a column loaded as text or number | Table |
| Look for blanks or odd values | Table |
| Change a column's data type or format | Table |
| Create a relationship between two tables | Model |
| Check cardinality or filter direction | Model |
| Create a measure | Any view with the Data pane |
| Clean or reshape source data | Power Query Editor, opened from Transform data |
Power Query Editor is not part of the view switcher. It opens in a separate window from the Transform data button on the Home ribbon. A later chapter explains it.
Creating a measure from any view
A measure is a calculation evaluated when a visual needs it. You can create one in Report, Table, or Model view, because the Data pane and the ribbon are available in each. Select a table, choose New measure on the Home or Table tools ribbon, and type the formula in the formula bar.
Order Count = COUNTROWS(Sales)This measure counts the rows in the Sales table. After you create it, it appears under Sales in the Data pane. The Data pane is shared, so the measure shows up in all three views. In Table view the measure does not add a column to the grid, because a measure has no stored values. You will see it in the Data pane only.
Common errors and gotchas
The grid looks empty or incomplete in Table view
Table view displays the table selected in the Data pane. If you have not selected a table, the grid can be blank. Click a table name. Very large tables load into the grid in portions as you scroll, so a short delay is normal.
Table view looks editable but is not
You cannot overwrite a cell. To change values you have three options: fix the source, transform the data in Power Query Editor, or write a DAX calculation. Typing in the grid does nothing to the model.
A relationship is missing in Model view
If you load tables from a source that defines relationships, such as a database with foreign keys, Power BI Desktop may detect and create them automatically. With CSV or Excel files it often does not. A missing line means the tables are unrelated, so visuals that combine fields from both may show the same value repeated on every row. Fix this in Model view.
Visuals disappear after you switch
They do not. Report view is organized by page. If you are viewing a different page than you expect, check the Pages tab at the bottom. Also check that you clicked the Report icon and not another icon.
The view switcher is missing
If the strip is hidden, you may be in Power Query Editor, which has its own window, or the Desktop window may be too narrow. Widen the window. If you are in a full-screen or focus mode on a visual, exit it with the Back to report button at the top.
Report view and Table view disagree about formatting
A column's data type and format are properties of the column in the model. A visual can override how a value is shown, but the column itself holds the base format. If a number looks fine in Table view and different in a visual, check formatting options on the visual, not just the column.
Tips for working quickly
- Keep the Data pane open in every view. Table and measure names stay in the same place.
- Use Model view early after loading several tables. Checking relationships first prevents confusing visuals later.
- Use Table view after every Get data. A quick scan for types and blanks catches most import problems.
- Save before you make large model changes, for example
Ctrl+S.
Exercises
Exercise
You renamed a column in Table view. Will the new name appear in the Data pane in Report view, and why?
Show answer
Yes. All three views are windows onto one data model, so a change made in one view is the same change everywhere. The Data pane reads the column name from the model.
Exercise
You loaded two Excel tables, Sales and Products. A visual shows the same total beside every product name. Which view do you open first, and what are you looking for?
Show answer
Open Model view. Look for a relationship line between Sales and Products. If there is none, the tables are unrelated, so create the relationship on the matching key columns.
Exercise
You create the measure Order Count = COUNTROWS(Sales) while in Table view. Does the grid gain a new column? Where does the measure appear?
Show answer
No. A measure has no stored values, so the grid does not change. The measure appears under the Sales table in the Data pane, which is shared across Report, Table, and Model views.