Sub topic 14
Design, accessibility, and testing pitfalls
This chapter assumes you can create bookmarks, set their capture options, add buttons with actions, and have built at least one show/hide panel, a view switch, and a reset button. Here you will check those patterns for design quality, accessibility, and reliability, and learn the failures that appear most often.
Why bookmark reports break
A bookmark stores a snapshot of state: visual visibility, filters, slicer selections, sort order, spotlight, and (depending on options) the current page. It does not store the data itself, the layout of visuals you moved after capture, or the contents of visuals you added later. Most defects come from a mismatch between what the author believes a bookmark captured and what it actually captured.
Three causes cover most problems:
- Bookmarks that were captured before a later change to the report.
- Capture options that do not match the job of the bookmark.
- Buttons and visuals whose behavior depends on state the author did not test.
Stale bookmarks
A bookmark is a snapshot. If you add a visual after creating it, the new visual is not part of the snapshot. If the bookmark covers all visuals, the new visual is hidden or shown according to its state at the time you next update the bookmark. If the bookmark covers only selected visuals, the new visual is ignored.
The fix is a routine. After any change to a page that has bookmarks, open the Bookmarks pane, select each bookmark, and check the page. Where the state is wrong, fix the page and choose Update from the bookmark's menu.
Renaming a visual in the Selection pane does not break a bookmark. Deleting a visual does remove it from the bookmark.
Capture options that cause surprises
The most common error is leaving the Data option on for a bookmark that should only change what is visible. With Data on, the bookmark restores slicer and filter state. A show/hide panel bookmark with Data on will reset the user's slicers each time they open or close the panel.
The reverse also happens. A reset bookmark with Data off cannot clear filters.
| Bookmark purpose | Data | Display | Current page |
|---|---|---|---|
| Show or hide a panel | Off | On | Off |
| Switch chart and table | Off | On | Off |
| Reset to a known state | On | On | On or off, by design |
| Saved analysis starting point | On | On | On |
Use Selected visuals for panel and view patterns. This limits the bookmark to the visuals you selected in the Selection pane. Visuals outside the group keep their current state. With All visuals, a bookmark can hide or show things you did not intend.
Current page matters when bookmarks are used across pages. With it on, applying the bookmark moves the user to the page where it was captured. With it off, the bookmark applies to whatever page is open, which usually gives wrong results if the bookmark was built for a different page.
Layering and the Selection pane
Many "the button does nothing" reports are layering problems. A transparent shape or an invisible visual sits above the button and takes the click.
Check the order in the Selection pane. Items higher in the list are in front. Place buttons at the top. Name every object clearly (for example btn_ShowFilters, panel_Filters). When a bookmark hides a panel, the buttons that open it must live outside the hidden group, or the user cannot bring the panel back.
A related error: a hidden visual still exists on the page. Screen readers and keyboard navigation can still reach some hidden items in certain setups, and hidden visuals still run their queries. Do not rely on hiding to protect sensitive data.
Button states and feedback
Buttons have default, hover, pressed, and disabled states. Test each one.
- Keep enough contrast between the button text and its fill in all states. The hover state is often the one that fails.
- Make the pressed state visibly different. Users need to know a click registered, especially when the bookmark changes the page slowly.
- A disabled state does not stop users clicking in every case. Use it only as a visual cue, and confirm the real behavior in the version you use.
For toggles, show which view is active by changing the button's look. Bookmarks can drive this when each view's bookmark also changes which button appears selected. A common design uses two copies of the button, one in the active style and one in the inactive style, with visibility switched by the same bookmark.
Accessibility
Interactive reports have to work without a mouse and with a screen reader. Power BI supports both, but only if you set the properties.
- Alt text. Select each button and fill in the alt text under Format > General > Alt text. Describe the action, such as "Show filters panel", not the appearance, such as "blue rectangle".
- Tab order. Open the Selection pane, then use the tab order setting to define a logical order. The order should follow the reading order: title, filters, main visuals, then navigation. Decorative shapes should be hidden from tab order or marked decorative.
- Keyboard use. In Desktop, press Ctrl+Click to follow a button. In the service, the user presses Enter or Space on a focused button. Check that every action you built works by keyboard alone.
- Color. Do not use color as the only signal. A selected view should also change text, an icon, or a border.
- Contrast. Aim for at least a 4.5:1 ratio for text, and 3:1 for icons and borders.
- Titles for hidden panels. If a panel opens as an overlay, give it a title so a screen reader announces where focus went.
Testing in Desktop and in the service
Desktop and the service behave the same for most bookmark logic, but you cannot assume it. Test in both.
- In Desktop, bookmarks and buttons need Ctrl+Click unless you are in reading view. Switch to reading view or publish to test the real experience.
- Open the published report in a fresh browser session. Cached state from your editing session can hide problems.
- Test as a user with the lowest permissions you grant. A user with a viewer role sees the same bookmark behavior, but the filter pane and personal bookmark options differ.
- Test on a phone layout if you use one. Bookmarks do not follow a visual that is only on the desktop layout.
- Test the whole sequence, not each button alone. Open the panel, change a slicer, switch the view, press reset, then press Back.
The Back action returns to the previous page the user was on. It does not undo a bookmark. If your design needs an undo, build it with a second bookmark.
Here is a useful test script as a table you can adapt:
| Step | Action | Expected result |
|---|---|---|
| 1 | Open the report in reading view | Landing state, panel hidden |
| 2 | Open the filter panel | Panel visible, slicers unchanged |
| 3 | Select a category, close the panel | Category filter still applied |
| 4 | Switch to the table view | Table shown, filter still applied |
| 5 | Press Reset | Slicers cleared, chart view, panel hidden |
| 6 | Press Back from another page | Returns to the previous page |
| 7 | Navigate by keyboard only | Every control reachable, in order |
Dynamic buttons and their limits
Buttons that use DAX for text or destination are convenient, but they add new failure modes.
- The measure is evaluated in the filter context of the button. A label measure that reads
SELECTEDVALUEshows the fallback when more than one value is selected. Always supply the fallback argument. - A destination measure must return a name that exactly matches a page name. A renamed page breaks the link without any error. After a rename, recheck every dynamic destination.
- Dynamic text does not appear in alt text unless you also set it. Use conditional formatting for alt text where the property supports it.
Here is a stricter version of the label measure from earlier in the tutorial. It handles the cases where no category, one category, or several categories are chosen.
Button Label =
VAR SelectedCount = COUNTROWS ( VALUES ( Product[Category] ) )
RETURN
SWITCH (
TRUE (),
NOT ISFILTERED ( Product[Category] ), "All categories",
SelectedCount = 1, "Clear filter: " & SELECTEDVALUE ( Product[Category] ),
"Clear filter: " & SelectedCount & " categories"
)Performance and maintenance
Each bookmark with Data on stores filter state, and each hidden visual still queries its data when the page loads. A page with many hidden panels and stacked views can load slowly. Keep hidden content light, and consider moving heavy detail to a drillthrough or separate page.
Maintain a short naming convention. Prefix bookmarks by role, such as vw_Chart, vw_Table, pnl_Open, pnl_Close, rst_All. Use bookmark groups to keep related bookmarks together, and make sure a bookmark navigator points to a group instead of every bookmark.
A checklist before publishing
- Every bookmark has been applied once and looks correct.
- Capture options match the bookmark's purpose.
- Buttons are at the top of the Selection pane order.
- Every button has alt text and a logical tab order.
- Contrast and non-color cues are checked in all states.
- Dynamic measures have fallbacks and valid page names.
- The reset button was tested after a long sequence of actions.
- The report was tested in the service, with a viewer account.
Exercise
A filter panel opens and closes with two bookmarks. Each time the user closes the panel, their slicer selections reset. What is the most likely cause, and how do you fix it?
Show answer
The bookmarks have the Data option on, so applying them restores the slicer state captured when the bookmark was created. Turn Data off in both bookmarks (leave Display on), apply the correct panel state on the page, and choose Update on each bookmark.
Exercise
You add a new chart to a page after creating a view-switch bookmark that uses Selected visuals. In the service, the new chart is always visible, even in table view. Why, and what do you do?
Show answer
The new chart was not part of the bookmark's selected visuals, so the bookmark never hides it. Add the chart to the group of visuals the chart-view and table-view bookmarks control, set its visibility correctly in each state, and update both bookmarks.
Exercise
A dynamic page navigation button works until someone renames the page "Detail" to "Details". What happens, and how do you prevent it?
Show answer
The measure still returns "Detail", which no longer matches a page name, so the button stops navigating without an error message. After any page rename, update the measure's returned text and retest. Keeping the page names in one place, such as a disconnected table, makes the update easier.