Sub topic 7
Adding a back button
This chapter assumes you can build a drill-through page, as covered in the previous chapter. That means a page with a drill-through field in its Drill through well, reached by right-clicking a data point. It also assumes you can place a shape or button on a report page and use the Selection pane.
A drill-through page has a usability problem. The reader arrives at a filtered detail page and has to find their way back. Browser buttons don't help, because a Power BI report is a single web page. Tab clicks work, but they don't restore the exact state the reader left. A back button solves this. It returns the reader to the page they came from, with the filters, slicer selections, and selected visuals they had.
What the Back action does
A button in Power BI can run one of several actions: Back, Bookmark, Page navigation, Q&A, Apply all slicers, Clear all slicers, Web URL, and others. The Back action tells the report to return to the place the reader navigated from.
Two properties matter here:
- It is history-based. The button doesn't point to a fixed page. It goes back to wherever the reader came from. If three different pages can drill through to the same detail page, one back button serves all three.
- It restores the source state. The reader returns to the source page as they left it, not to a freshly loaded version of it.
A Page navigation button works differently. It always opens the one page you chose, and it can't know which page the reader came from. For a drill-through target with several entry points, use Back.
The automatic back button
When you add a field to the Drill through well on a page, Power BI Desktop adds a back button to the top-left corner of that page for you. It is an arrow-shaped button with its action already set to Back. Many reports ship with that default and never change it.
You will still need to add one yourself in these cases:
- You deleted the automatic button while cleaning up the layout.
- The page was created before the field was added, or came from a template or older file that lacks the button.
- You want a different look, such as a labeled button that matches your report theme.
- You want a back button on a page that is not itself a drill-through page. This is a niche case, and the "Edge cases" section explains why it can behave oddly.
Adding a back button manually
- Open the drill-through page in Report view.
- On the Insert tab, select Buttons, then Navigator or Button, and choose Back. In current versions the Buttons menu lists a Back button among the preset buttons.
- Drag the button to a consistent position. The top-left corner is the convention, and the automatic button uses it.
- Select the button and open the Format pane. Turn on Action. Confirm that Type is set to Back.
If you started from a blank button, set the Action type yourself. In the Action card, set Type to Back, and the button now returns the reader to the previous page.
Testing in Desktop
In Power BI Desktop, report buttons don't respond to a plain click while you are editing, because a plain click selects the button for formatting. Hold Ctrl and click to trigger the action. In the Power BI service reading view, a plain click works. A test pass only counts if you also run it in the service, because the Desktop test does not use the reader's click behavior.
To test the whole path:
- Go to the source page.
- Select a slicer value or a data point, so there is state to restore.
- Right-click a data point and choose Drill through.
- Ctrl+click the back button.
- Check that the source page looks as you left it.
Formatting the button
Several settings in the Format pane affect usability, not only appearance.
| Setting | Why it matters |
|---|---|
| Style, Icon | Choose an arrow or a text label. Text such as "Back to overview" is clearer than an icon alone. |
| States: Default, On hover, On press, Disabled | Hover and press feedback tells the reader the element is clickable. |
| Action, Tooltip | Text shown on hover, for example "Return to the previous page". |
| General, Alt text | Read aloud by screen readers. Describe the destination, not the shape. |
| Tab order (Selection pane) | Place the back button first so keyboard users reach it early. |
Name the button in the Selection pane, for example "Back button". When a page has many objects, a clear name makes it easy to select, reorder, or lock.
A dynamic tooltip or label
The Tooltip text and the Button text can be driven by a measure through conditional formatting (the fx button). That lets the button remind the reader what they are looking at:
Back Tooltip =
"Back to the previous page, leaving "
& SELECTEDVALUE ( Customer[Customer Name], "all customers" )This uses the same pattern as the dynamic title from earlier in the chapter series. SELECTEDVALUE returns the single customer in filter context, and the fallback text covers the case where the page is opened without a customer filter.
Placement and layout guidelines
- Keep it in the same place on every drill-through page. Readers learn the location once.
- Keep it outside the data area. The top-left corner above the title is safe. A button that overlaps a visual can capture clicks meant for the visual.
- Make it large enough to click. Roughly 30 to 40 pixels tall is comfortable. Small icons are hard to hit on touch screens.
- Lock the layout. In the View tab, turn on Lock objects, so you don't drag the button by accident later.
- Do not rely on the tab strip. Drill-through pages are often hidden (right-click the page tab, then Hide page). A hidden page has no tab for the reader to use, so the back button is the only visible way out.
Edge cases
Opening the page directly. If a reader opens the drill-through page from the tab strip, or you have it open in Desktop while editing, there is no previous drill-through location. The back button has nothing to return to. In the reading view this looks like a button that does not respond. The fix is to hide the page so the only way in is through drill-through.
Several hops. If the reader drills from page A to page B and from B to page C, Back takes them to B and then, on a second click, to A. If your design has chains like this, put a back button on each page in the chain.
Cross-report drill-through. When drill-through targets a page in another report, the back button on the target page returns the reader to the source report. The target report needs its own back button. Add and test it in the target report, not the source.
Back is not the same as undo. The button restores navigation state. It doesn't reverse changes a reader made on the detail page itself, such as slicer selections. Those changes stay with the detail page.
Keep all filters. A drill-through page with Keep all filters turned on carries the source page's filters with it. Back returns the reader to the source page either way, so it does not change which filters the detail page received.
Bookmarks. If a page uses bookmarks to switch between views, a Back button doesn't move through bookmarks. Use Bookmark actions for that.
Quick checks when the button misbehaves
- Nothing happens in Desktop. Hold Ctrl while you click.
- Nothing happens in the service. Confirm that the action is turned on and that Type is Back. Also check that the reader arrived through drill-through and not from the tab strip.
- The button is hidden. Another visual may sit on top of it. Check the Selection pane order.
- The automatic button is missing. Add one from Insert, Buttons, Back.
- The button shows the wrong text. Check whether a conditional format rule is overriding the static text.
Exercise
A reader opens your hidden Customer Detail page by drilling through from two different pages, Sales Overview and Regional Map. You want a single button on Customer Detail that returns the reader to whichever page they came from. Which button action should you use, and why would a Page navigation button not work?
Show answer
Use the Back action. It is history-based, so it returns to whichever page the reader drilled through from and restores that page's state. A Page navigation button points to one fixed page, so it would send every reader to the same place, even when they came from the other page.
Exercise
You added a back button to a drill-through page in Power BI Desktop and clicked it, but nothing happened. List two reasons that are not mistakes in the button's settings.
Show answer
First, in Desktop edit mode a plain click only selects the button, so you must Ctrl+click it to run the action. Second, if you opened the page from its tab and not through drill-through, there is no previous location to return to, so Back has nowhere to go.