Sub topic 7
Adding a back button
This chapter assumes you can build a drill-through page with a drill-through field, as covered in the previous chapter. It also assumes you know how to open the Format pane for a visual or shape in Power BI Desktop.
Why a drill-through page needs a way back
When a reader right-clicks a data point and chooses a drill-through target, Power BI opens the detail page with filters applied. The reader is now on a different page, often one hidden from the page tabs. If that page has no obvious exit, the reader has to find the source page tab again. They also lose their place.
A back button solves this. It returns the reader to the page they came from, with the source page's selections and filters still in place.
What Power BI adds for you
When you drop a field into the Drill-through well, Power BI Desktop usually adds a back button to the top-left corner of the page. You can move, resize, restyle or delete it. If the button is missing, for example because you deleted it or built the page in an older file, add one yourself.
Adding a back button manually
- Open the drill-through page in Report view.
- On the Insert tab, select Buttons, then Navigator or Back (the Back option is in the Buttons menu).
- Select the new button and open the Format pane.
- Turn on Action, set Type to Back, and confirm the action is enabled.
- Under Tooltip text, enter something such as "Return to the previous page". Add alternative text for screen readers.
The Back action does not point at a named page. It returns to whichever page the reader came from. That makes one button work no matter which source page launched the drill-through.
Testing the button
In Power BI Desktop, a button does not respond to a plain click while you are editing. Hold Ctrl and click it to follow the action. In the Power BI service, in reading view, a plain click works.
To test the full round trip:
- Go to a source page and select a data point.
- Right-click it and choose Drill through, then your detail page.
- Ctrl+click the back button.
- Check that you land on the source page with your earlier selection intact.
Design choices
- Put the button in the same place on every drill-through page, usually the top-left. Readers learn the location once.
- Use a recognizable shape or arrow icon and a clear tooltip text.
- Keep the button off the page canvas that you export or print by hiding it on exports, or accept it as part of the layout.
- Do not rely on the browser Back button. In the Power BI service it can leave the report entirely instead of returning to the previous page.
Common problems
| Symptom | Likely cause | Fix |
|---|---|---|
| No back button on a new drill-through page | It was deleted, or the page was copied from one without a drill-through field | Insert a button and set its action to Back |
| Button does nothing in Desktop | Plain click in edit mode | Ctrl+click, or test in reading view |
| Button returns to the wrong place | Reader navigated through page tabs in between | Back follows the navigation path, so retest from the source page |
| Button looks inactive | Action is turned off in the Format pane | Turn Action on and set Type to Back |
Exercise
A reader opens your hidden drill-through page by drilling through from a bar chart, then clicks your back button. Which page do they land on, and why does the button not need a target page configured?
Show answer
They land on the page that holds the bar chart, with their earlier selection preserved. The Back action type returns to whichever page the reader came from, so it needs no fixed destination and works for any source page.