Sub topic 14
Design, accessibility, and testing pitfalls
This chapter assumes you can create bookmarks, use the Selection pane, and assign button actions. It covers the problems that most often appear when a bookmark-and-button report moves from a working draft to something other people use.
Design pitfalls
Most bookmark bugs come from a mismatch between what a bookmark captures and what you expected it to capture.
| Symptom | Likely cause | Fix |
|---|---|---|
| A reset button leaves a slicer unchanged | The bookmark has **Data** turned off, or the slicer was not selected for capture | Turn Data on, or use the Clear all slicers action |
| A panel opens but the chart behind it also changes | The bookmark captures **Data** and re-applies old filters | Turn Data off for pure show/hide bookmarks |
| A new visual never appears when you click a bookmark | The visual was added after the bookmark was saved | Right-click the bookmark and choose Update |
| Buttons stay visible in the wrong view | Buttons were not included in the bookmark's visibility state | Hide or show them in the Selection pane, then update the bookmark |
| A bookmark jumps to the wrong page | **Current page** is on and the bookmark was saved on that page | Re-save it on the intended page |
Keep one rule in mind. A bookmark stores a snapshot, so any change you make to the report afterward is not in the snapshot until you update it.
Name every object in the Selection pane. Names like "Group 3" and "Button 12" make bookmark maintenance slow. Prefixes such as btn_, panel_ and chart_ help.
Accessibility
Buttons are often the main way a keyboard or screen reader user moves through a report, so set them up deliberately.
- Alt text. Select each button and enter a short description under Format > General > Alt text. Say what the button does, for example "Show filter panel".
- Tab order. Open the Selection pane and set the tab order so focus follows the visual reading order. Hidden objects are skipped.
- Contrast. Check text and fill colors in every state, including hover, pressed and disabled. Do not rely on color alone to show which view is active.
- Target size. Make buttons large enough to click easily on a touch device.
- Titles on groups. Give the filter panel group a descriptive name so it is clear when someone navigates into it.
Testing
Test in the way users will use the report, not the way you built it.
- Open the report in Reading view in Desktop. Bookmarks that look right in Editing view can behave differently because of Selection pane state.
- Click every button from a clean state, then from a state where several slicers are already set.
- Click buttons in an unusual order, such as opening a panel twice or resetting before any filter is set.
- Publish to the Power BI service and repeat the tests there. Personal bookmarks and saved filter state can change what a user sees on first load.
- Test with the keyboard only. Use Tab, Enter and Ctrl+click for buttons.
- Check on a narrow screen or in the phone layout if your audience uses mobile.
Keeping reports maintainable
- Reuse a small set of bookmarks rather than creating one per page and state.
- Group related bookmarks, such as all view-switching bookmarks, so the navigator stays organized.
- Document the purpose of each bookmark in its name, for example
View - TableandPanel - Filters open. - Check the bookmarks again after you add or rename a visual, change a slicer field, or rename a page.
Exercise
A "Show filters" bookmark opens a filter panel, but each time a user clicks it, their chart selection resets to the state you saved. Which capture option is the likely cause, and what should you change?
Show answer
The bookmark has Data turned on, so it re-applies the saved filter and slicer state. Turn Data off, keep Display on, and update the bookmark so it only changes visibility.
Exercise
You add a new card to a page after saving a "Summary view" bookmark. The card does not appear when the bookmark is clicked. What should you do?
Show answer
Open the Selection pane, set the card's visibility as you want it for that view, then right-click the bookmark and choose Update so it records the card.