Sub topic 2
What a bookmark is and how to create one
This chapter assumes you can move around Power BI Desktop (pages, the Fields pane, the Visualizations pane), build visuals and slicers, and understand cross-filtering between visuals. You should also know the Selection pane from the previous chapter, because bookmarks rely on it for visibility.
What a bookmark is
A bookmark is a saved snapshot of how a report page looks and is filtered. When you apply it, Power BI puts the page back into that state. A bookmark does not store data. It stores instructions: which page, which filters, which visuals are visible. The values shown are always computed from the current data model.
Treat a bookmark as a saved set of settings. That explains most bookmark behavior, including the mistakes people make with them.
What a bookmark stores
A bookmark can capture these properties of a report page:
- The current page.
- Filters at every level: the report, page, and visual filters in the Filters pane.
- Slicer selections, and the slicer type (for example list or dropdown).
- Cross-highlighting and cross-filtering selections made by clicking a visual.
- Sort order of visuals.
- Drill location in a hierarchy.
- Which visuals and shapes are shown or hidden, as set in the Selection pane.
- Focus mode and Spotlight.
Which of these are actually saved and restored depends on the capture options, covered in the next chapter. This chapter uses the defaults.
What a bookmark does not store
- Data. If the model refreshes, the bookmark shows the new numbers.
- A frozen copy of a visual's formatting or fields. Bookmarks refer to visuals by identity, not by appearance. If you change a visual's fields or formatting after creating a bookmark, applying the bookmark shows the visual as it is now.
- Visuals that did not exist when you made it. A visual added later is not part of the snapshot. Apply the bookmark again after adding visuals and check the result.
- Your edits made after creation. A bookmark does not follow the page. If you change a slicer after saving the bookmark, the bookmark still holds the older selection until you update it.
If you delete a visual that a bookmark depended on, the bookmark still applies, but that visual is gone from the result. Check your bookmarks after you restructure a page.
Creating a bookmark
You create bookmarks in Power BI Desktop from the Bookmarks pane.
- Open the report page and put it in the state you want to save. Set slicers, select data points, sort visuals, drill down, and hide or show visuals in the Selection pane.
- On the View tab, select Bookmarks. The Bookmarks pane opens.
- Select Add. Power BI creates a bookmark named "Bookmark 1" (then 2, 3, and so on).
- Rename it. Double-click the name, or use the ... menu and choose Rename. Press Enter to confirm.
- Change the page to a different state and select the bookmark to confirm it restores what you saved.
The order of operations matters. Set the state first, then add the bookmark. Adding a bookmark first and arranging the page afterward gives you a bookmark of the wrong state.
Naming bookmarks
Names are for you, and later for the bookmark navigator, which shows them to report readers. Use short names that describe the state, such as "Filters open", "Filters closed", "Chart view", or "Reset". A consistent prefix makes sorting easier when a report has many bookmarks, for example "Panel - open" and "Panel - closed".
Managing existing bookmarks
Each bookmark in the pane has a ... menu. These are the commands you will use most:
| Command | What it does |
|---|---|
| Update | Overwrites the bookmark with the current state of the page. |
| Rename | Changes the label. |
| Delete | Removes the bookmark. Buttons that point to it stop working. |
| Group | Moves the bookmark into a group (see the later chapter on groups). |
| Data, Display, Current page | Toggle what the bookmark captures (see the next chapter). |
| Selected visuals | Limits the bookmark to the visuals you selected. |
You can also drag bookmarks in the pane to change their order. The order is the sequence used by the View (presentation) mode and by the bookmark navigator, so it matters when readers step through the bookmarks.
Update versus Add
The most common beginner error is to change a page and then select Add again, which creates a duplicate. If you want to fix an existing bookmark, change the page and choose Update on that bookmark. Updating keeps the name, the position, and any button that points to it.
The second most common error is to apply a bookmark, change the page, and assume the bookmark now holds the changes. It does not. Only Add and Update write state.
Applying a bookmark
There are three ways to apply a bookmark:
- Select it in the Bookmarks pane. This is useful while designing.
- Assign it to a button, shape, or image with the Bookmark action. This is how readers use bookmarks in a finished report and is covered in the chapters on buttons.
- Use the bookmark navigator visual, which builds a row of buttons from your bookmarks.
The View button in the Bookmarks pane starts a presentation mode. It steps through the bookmarks in pane order and shows them full screen. It is a quick way to review the sequence and to present a report as a slideshow.
A worked example
Suppose a report page has a bar chart of sales by region, a slicer for Category, and a table of details. You want a saved view of "Bikes only, sorted by sales".
- Select Bikes in the Category slicer.
- Sort the bar chart by sales, descending.
- Open View, then Bookmarks, and select Add.
- Rename the bookmark to "Bikes by sales".
- Clear the slicer, change the sort order, and then select the bookmark.
The slicer shows Bikes again and the chart returns to the sales sort. The bookmark did not store "Bikes" as data. It stored the slicer selection and sort order, and the visuals recalculated against the current model.
Now test the limits. Change the bar chart to use a different measure, then apply the bookmark. The slicer and sort come back, but the chart keeps its new measure. This shows that the bookmark restores state, not design.
Common errors
- Adding a bookmark before the page is in the right state. Apply it, find the mistake, rearrange the page, and use Update.
- Forgetting to update after later design changes. Reapply each bookmark after any edit to the page and check it.
- Expecting new visuals to follow the bookmark. They do not belong to bookmarks created before they existed. Update the bookmarks that should include them.
- Deleting a bookmark that a button uses. The button has no target until you assign another bookmark.
- Using default names. Names like "Bookmark 7" make a button's action impossible to review later.
The next chapter explains the Data, Display, and Current page options. These control which parts of the state a bookmark restores, and they decide whether a bookmark you create behaves as expected.
Exercise
You create a bookmark named "Filters open", then change a slicer selection on the page and select the bookmark again. What happens to the slicer, and what should you do if you want the bookmark to keep the new selection?
Show answer
Applying the bookmark restores the slicer to the selection it had when the bookmark was created or last updated, because the bookmark does not follow later changes. To keep the new selection, set the slicer the way you want, then open the bookmark's ... menu in the Bookmarks pane and choose Update. Do not use Add, because that creates a second bookmark instead of changing the existing one.
Exercise
A bookmark was created last week. Today you add a new card visual to the page and change the fill colour of an existing chart. When you apply the bookmark, what do you expect to see?
Show answer
The bookmark restores its saved state, but it does not contain the new card because the card did not exist when the bookmark was made. The chart keeps its new fill colour, because bookmarks refer to visuals and do not store a copy of their formatting. Apply the bookmark and check the page, and use Update if the card should be part of the bookmark.