Sub topic 3
Reset Buttons, Navigation, and Dynamic Controls
Assume you can create Power BI pages, visuals, and slicers. You should also understand cross-filtering and basic DAX measures.
Pattern: a reset button
A reset button applies a bookmark that stores the report's known starting state. First, set slicers, visual visibility, and page selection as desired. Open View > Selection to control which objects are visible and which objects appear in front. Then open View > Bookmarks, select Add, and name the bookmark Reset.
Choose bookmark options deliberately:
- Data stores filter and slicer selections.
- Display stores visual visibility.
- Current page stores the active page.
- Selected visuals limits the bookmark to selected objects instead of the whole page.
Insert a button and set Action to Bookmark, with Reset as the bookmark. Test whether it restores every state you intended.
A common error is capturing only Data when the reset also needs to restore a hidden panel. Capture Display too.
Page navigation buttons and the page navigator
Set a button's action to Page navigation and select its destination page. Use Back for return navigation. A page navigator is a built-in visual that creates navigation items for report pages. It reduces manual button maintenance, but you have less control over each item's layout.
Bookmark groups and the bookmark navigator
Group related bookmarks, such as Views or Filters, so their purpose is clear. A bookmark navigator is a built-in visual that displays buttons for bookmarks in a group. Update the group when you add or rename bookmarks, then test every state.
Dynamic button text and destinations with DAX
Conditional formatting can bind button text or destination properties to a measure.
Button Label =
IF (
ISFILTERED ( Product[Category] ),
"Clear filter: " & SELECTEDVALUE ( Product[Category], "Multiple" ),
"All categories"
)
Target Page =
IF (
SELECTEDVALUE ( 'View'[Level] ) = "Detail",
"Detail",
"Summary"
)Target Page assumes a disconnected View table and page names that match the returned text.
Power BI service and design checks
In the Power BI service, report bookmarks are authored with the report and affect everyone. Personal bookmarks save an individual's view without changing the report for others. Test bookmarks after publishing because service permissions, page names, and responsive layouts can expose different problems.
Use meaningful labels, sufficient contrast, keyboard-accessible controls, and visible focus or selected states. Check hover, pressed, and disabled states. Test reset, navigation, slicers, bookmarks, and mobile layouts in both Desktop and the service.
Exercise
A reset button restores slicers but leaves a filter panel hidden. Which bookmark setting is probably missing?
Show answer
Display. Data restores filter values, while Display restores visual visibility.