Sub topic 10
Page navigation buttons and the page navigator
This chapter assumes you can add pages and visuals in Power BI Desktop, insert a button, and set a button action. It also assumes you know what the Selection pane does. Bookmarks are not required here, but the last section shows where they fit.
Two ways to move between pages
Power BI gives you two tools for moving between report pages:
- A page navigation button is a single button whose action is set to Page navigation. It leads to one chosen page.
- The page navigator is a visual that builds one button for every page in the report. It updates itself when you add, rename, or reorder pages.
Use a button when you want a specific link, such as "Go to Detail". Use the navigator when you want a full menu.
Building a page navigation button
- On the Home tab, choose Insert, then Buttons, then Blank.
- Select the button and open the Format pane.
- Turn on Action. Set Type to Page navigation.
- In Destination, pick the target page.
- Add text under Style, and set a tooltip so the button's purpose is clear.
Hold Ctrl and click the button in Desktop to follow it. In the Power BI service, a plain click is enough.
If the destination page is hidden, the button still works. This is a common way to build drill-through-style detail pages that do not appear in the tab bar.
Using the page navigator
- Choose Insert, then Buttons, then Navigator, then Page navigator.
- Place it on the page. It lists every visible page.
- In the Format pane, open Pages to hide specific pages from the list, or to show hidden pages.
- Style the Selected state differently from the Default state. The current page then stands out.
Paste the same navigator on every page so the menu looks identical everywhere. Pages hidden from the tab bar are left out of the navigator by default, so a back-office page stays off the menu.
Making the destination dynamic
A button's destination can come from a measure. In the Destination field, choose the fx option and select a measure that returns a page name. This measure assumes a disconnected View table with a Level column, and pages named Detail and Summary:
Target Page =
IF (
SELECTEDVALUE ( 'View'[Level] ) = "Detail",
"Detail",
"Summary"
)One button can then lead to different pages depending on a slicer selection. The returned text must match the page name exactly.
Common errors
| Symptom | Likely cause |
|---|---|
| Button does nothing in Desktop | You clicked without holding Ctrl |
| Dynamic destination fails | The measure's text does not match a page name |
| A page is missing from the navigator | The page is hidden, or it is turned off in the navigator's Pages settings |
| Navigation breaks after a rename | An old page name is still typed into a measure |
Page navigation does not carry filters from one page to another. If you need the new page to match the current selection, use drill-through or sync slicers. A bookmark can also restore a fixed state, but that is a different action type.
Exercise
You added a new page called "Forecast" to a report that has a page navigator on every page. The page does not appear in the navigator. Name two things to check.
Show answer
Check whether the Forecast page is hidden, since hidden pages are left out by default. Then check the navigator's Pages settings in the Format pane to see whether the page is turned off. Also confirm the navigator was pasted onto that page.