Sub topic 9
Pattern: a reset button
A reset button returns a report to a known starting state with one click. This chapter explains how to build one with bookmarks, when the built-in "Clear all slicers" action is enough, and where each approach fails.
This chapter assumes you can create slicers and buttons, know how to open the Selection pane, and understand the bookmark capture options (Data, Display, Current page, All vs Selected visuals) from earlier chapters.
What "reset" should mean
Before building anything, decide what state the report returns to. A reset can mean several different things:
- Slicers and filters return to "nothing selected".
- Panels and toggles return to their default visibility, such as the filter panel closed.
- The chart-or-table view returns to the default view.
- The user returns to the landing page.
A single bookmark can cover all of these, but only if it captures them. A reset built for slicers alone will leave a panel open or a table showing, and users will still see a report that looks different from when they opened it.
Two approaches
| Approach | What it resets | Strengths | Limits |
|---|---|---|---|
| Button with the Clear all slicers action | Slicer selections on the current page | No bookmark to maintain, and it adapts when you add slicers | Does not change visibility, does not restore a default selection, does not leave the page |
| Button with a Bookmark action | Whatever the bookmark captured | Resets data and display together, and can restore a default selection | Must be recreated when the report layout changes |
Use Clear all slicers when "no selection" is the default state and only slicers matter. Use a bookmark when the default is anything else, or when display state is involved.
Approach 1: the Clear all slicers action
- Insert a button, for example from Insert > Buttons > Blank or Reset.
- Select the button and open Format > Action.
- Turn the action on and set Type to Clear all slicers.
Clicking the button removes selections from every slicer on the page. In Power BI Desktop you can test it by holding Ctrl and clicking.
Two points about this action cause most confusion:
- It clears slicers only. Filters in the Filters pane, cross-filter selections made by clicking a chart's bars, and drill state are not slicers, so they stay.
- It acts on the current page. Slicers synced to other pages are cleared through the sync group, but slicers that are not synced and sit on other pages are untouched.
Approach 2: a reset bookmark
A bookmark-based reset works by capturing the report in its default state and applying that capture on demand.
Step 1: put the report in its default state
Set every control the way a new visitor should see it:
- Clear or set every slicer to its default value.
- Clear cross-filter highlighting by clicking an empty area of the canvas or clicking the selected data point again.
- Reset drill-down on any visual to the top level.
- In the Selection pane, show the default visuals and hide the rest, such as hiding the filter panel and the table view.
- Set sort order and any other visual settings you want restored.
Step 2: add the bookmark
Open View > Bookmarks and choose Add. Rename it so its purpose is obvious, for example Reset - Sales Overview.
Step 3: choose the capture options
Select the bookmark's menu and review three options:
- Data: keep it on. The bookmark must store filter, slicer, sort, and drill state, otherwise it cannot reset them.
- Display: keep it on if the reset should also restore visibility, spotlight, and focus mode.
- Current page: keep it on to apply any page-level state of the page where the bookmark was made. Switching this off lets a reset keep the user on the page they are viewing. Turning it on also switches the user to the bookmark's page.
- Apply to All visuals, not Selected visuals, so no visual is skipped.
For a reset that only affects some visuals, use Selected visuals. Select those visuals in the Selection pane first, then choose the option. New visuals added later will not be part of the bookmark.
Step 4: wire the button
- Insert a button and place it where users expect it, usually near the slicers.
- In Format > Action, set Type to Bookmark.
- Choose the reset bookmark in the Bookmark dropdown.
Test it by changing several slicers, opening the filter panel, and clicking Reset. Each one should return to the captured state.
How the reset flows
Combining both approaches
The two methods can be layered. A common arrangement has two buttons:
- A small "Clear filters" button using Clear all slicers, which only empties slicers and leaves the user's view alone.
- A "Reset view" button using the bookmark, which restores the whole default state.
Users often want the first action mid-analysis without losing their current panel or view. Offering both avoids forcing a full reset when a slicer clear would do.
Interaction with other patterns
A reset must agree with the other bookmarks in the report.
- Show/hide panel: the reset bookmark should capture the panel hidden. If the toggle button uses two bookmarks (panel open, panel closed), a reset to "closed" leaves the toggle's next click correct. If the toggle uses a bookmark whose state was not reset, the first click after a reset can appear to do nothing.
- View switching: the reset bookmark should capture the default view, such as the chart visible and the table hidden.
- Buttons with selected state: the reset bookmark captures the button's state too, so the active toggle button returns to its default look.
Common errors
| Symptom | Likely cause | Fix |
|---|---|---|
| Reset leaves a slicer on the old value | Data was switched off for the bookmark | Turn Data on and Update the bookmark |
| Reset restores slicers but a panel stays open | Display was switched off, or the panel was visible when the bookmark was added | Turn Display on, hide the panel, and Update |
| A newly added visual is unaffected | The bookmark uses Selected visuals | Update the bookmark after selecting the new visual, or use All visuals |
| Reset jumps to a different page | Current page is on and the bookmark was made on another page | Make the bookmark from the correct page, or turn Current page off |
| Cross-filter highlight remains after Clear all slicers | Highlights are not slicers | Use a bookmark captured with no highlight |
| Reset button shows an old selection after a data refresh | The bookmark stores a value that no longer exists | Update the bookmark, or choose a default that always exists |
| Reset works for you but not for a colleague in the service | A personal bookmark or a different published version | Check that the report bookmark was published |
Edge cases
- Relative date slicers. A bookmark stores the slicer's setting, so a "Last 30 days" relative selection stays relative. A fixed between-dates selection is stored as fixed dates and goes stale.
- Hierarchical and dropdown slicers. Select the default value you want before capturing, or you will capture the previously expanded state.
- Sync slicers. A bookmark applies the slicer state to synced slicers on other pages as well, which can be surprising if the reset is meant for one page.
- Slicers set to Single select with "Select all" turned off. Clearing leaves nothing selected, which is not allowed, so Clear all slicers appears to do nothing. Capture the required default value in a bookmark instead.
- Hidden slicers. Clear all slicers also clears slicers that are hidden in the Selection pane. Hidden slicers used for permanent background filtering are cleared too, which can change results unexpectedly. For those, use a bookmark and test it.
Building a labelled reset with DAX
If you want the button to show whether anything needs resetting, you can drive its text with a measure, as covered in the dynamic buttons chapter. This sample reads the Category slicer and shows a different label depending on the selection:
Button Label =
IF (
ISFILTERED ( Product[Category] ),
"Clear filter: " & SELECTEDVALUE ( Product[Category], "Multiple" ),
"All categories"
)Set it through Format > Button > Style > Text > fx. The label reads "All categories" in the default state and names the filter otherwise. Pair it with a Clear all slicers action so the label and behavior agree.
Accessibility and testing
- Give the button alt text such as "Reset report to default view" under Format > General > Alt text.
- Set a meaningful tab order so keyboard users can reach the reset button right after the slicers.
- Use a clear label. An icon alone is ambiguous.
- Test with Ctrl+click in Desktop, then publish and test in the service, where bookmarks run without Ctrl.
- Test the sequence: change slicers, open each panel, switch the view, click a chart point, then reset. Compare the result with a freshly opened report.
Exercise
A report has a Year slicer defaulted to the latest year, a filter panel that opens with a button, and a table view that replaces a chart. A colleague builds a reset button with the Clear all slicers action. After clicking it, the Year slicer is empty and the panel and table stay as the user left them. What would you change, and which bookmark options matter?
Show answer
Replace the action with a Bookmark action. Put the report in its default state: Year set to the latest year, the filter panel hidden, the chart visible and the table hidden. Add a bookmark named for the reset. Keep Data on so the slicer value is stored, keep Display on so visibility is stored, and use All visuals so no visual is skipped. Leave Current page on only if the reset should also navigate to this page. Update the bookmark whenever the default year changes.