Sub topic 9
Pattern: a reset button
This chapter assumes you can create bookmarks, set the Data, Display, and Current page options, and assign a button action. A reset button returns a report page to a known starting state with one click. Readers who have filtered themselves into an empty view can recover without closing the report.
Two ways to build a reset
Power BI gives you two ways to do this. They behave differently.
| Approach | What it resets | What it leaves alone |
|---|---|---|
| Button action **Clear all slicers** | Every slicer on the current page | Visual-level filters, drill state, sort order, panel visibility |
| Button action **Bookmark** pointing to a "Reset" bookmark | Everything the bookmark captured | Anything the bookmark excluded |
Choose Clear all slicers when slicers are the only thing readers change. Choose a bookmark when the page also has toggled panels, drilled visuals, or default selections that must come back.
Build a bookmark-based reset
- Put the page in the state you want readers to start from. Clear or set the slicers to their defaults, drill up, remove cross-filter highlights, and hide any pop-up panels. Use the Selection pane to confirm which visuals are visible.
- Open the Bookmarks pane and select Add. Name it
Reset. - Open the bookmark's menu and check the options. Leave Data, Display, and Current page on, and apply to All visuals.
- Insert a button, such as Blank with a reset icon. Set its Action to Bookmark and choose
Reset. - Add alternative text and a tooltip, such as "Reset filters".
Why the options matter
The Data option stores filters, slicer selections, sort order, and drill location. If you turn it off, applying the bookmark changes only what is visible, and the filters stay as the reader left them. That is the most common reason a reset "does nothing".
The Display option stores visual visibility and spotlight. Keep it on if your reset should also close a panel.
The Current page option controls which page shows after the click. Keep it on so the reset does not move the reader to another page.
With Selected visuals instead of All visuals, the bookmark resets only the visuals you chose. This is useful when one section of a page should keep its state. For a full reset, use All visuals.
Common problems
- A slicer keeps its old selection. You probably captured the bookmark while the slicer was filtered. Reset the slicer, then right-click the bookmark and choose Update.
- A new visual ignores the reset. A bookmark covers the visuals that existed when you saved it. After you add a visual, update the bookmark.
- The reset moves the reader to another page. Current page is off. Turn it on.
- Synced slicers on other pages stay filtered. Reset works on the current page's state. Check your sync settings, or add a reset button on each page.
Test it
Change the slicers, drill into a visual, sort a table, and open any panel. Select the reset button and check that each change is undone. Do this in Reading view, because the Ctrl+click needed in Desktop's editing view hides problems. Test it again after you publish.
Exercise
A reader clicks your reset button. The slicers return to their defaults, but a matrix is still sorted by the wrong column. Which bookmark option is the likely cause, and how do you fix it?
Show answer
The Data option is likely off, or the bookmark was captured while the matrix was in the wrong sort order. Turn Data on, set the matrix to the sort order you want, and update the bookmark. Check that the bookmark applies to the matrix: it must be included if you use Selected visuals.