Forum Discussion
Bookmark Interaction Issue — Second-Level Bookmark Not Resetting Correctly
Scenario Overview
I’m working on a Power BI report that uses multiple bookmarks for navigation.
There are two levels of bookmarks:
1️⃣ Top-Level Bookmark:
Used to switch between Revenue, Profit, and Cost views.
2️⃣ Second-Level Bookmark:
Used to toggle between Overall and Breakdown views for whichever metric is selected in the top level.
Setup Details
Total of 6 line charts on the same page:
Revenue: 2 charts → Overall and Breakdown
Profit: 2 charts → Overall and Breakdown
Cost: 2 charts → Overall and Breakdown
Each pair of visuals (Overall/Breakdown) is stacked on top of each other.
I control their visibility using bookmarks (only one visible at a time).Buttons at both levels change color for selection:
Selected → Black
Non-selected → White
I’ve attached the .pbix file for reference
Onedrive Link: https://1drv.ms/u/c/f649352c394d4116/ETsjgzAef0ZKr2c9MMQm5V4BSmqNgcLZs8kP-StDAXKC1w?e=Q4QmPj
The Issue
When the file opens:
By default → Revenue (Top-Level) and Overall (Second-Level) are selected.
✅ Works fine.
Steps to reproduce the issue:
Click Breakdown → revenue breakdown graph appears correctly.
Click Profit in the top-level → it switches correctly to Profit (Overall).
Click Breakdown → shows Profit Breakdown correctly.
Now click Revenue again → the graph correctly switches to Revenue Overall,
❌ but the bookmark navigator still shows Breakdown as selected.
Expected behavior:
When switching back to Revenue, the Overall button should appear selected (since the Overall view is showing), not Breakdown.
What I’ve Tried
Tried switching between All Visuals and Selected Visuals options in the bookmarks.
Tried reordering and updating bookmarks after selection.
Still facing the same issue.
Can someone help me on this.
Hello Imagauthamam
Bookmarks can be tricky.
When I read your note about "top level bookmarks" controlling Revenue, Profit, or Cost, I thought that maybe you should try the SELECTEDMEASURE approach:
1) Create the three measures you need, which I suppose you already have.
2) Create calculated column:
Select Measure =DATATABLE ("Measure", STRING,{{ "Revenue" },{ "Profit" },{ "Costs" }})3) Create a Measure:
Selected Measure = SWITCH(SELECTEDVALUE('Select Measure'[Measure]), "Revenue", [Revenue], "Profit", [Profit], "Costs", [Costs])Put a slicer on the page. Use the [Measure] column. Set it up a Button SlicerSet up ONE set of visuals (charts, etc.) and use the [Selected Measure] as the Value column.4) Optional: Create a Measure to be used for Chart Title:My Chart Title = SELECTEDVALUE('Select Measure'[Measure]) & " Used as Chart Title"5) For the Chart title, use a function as the title text. Select "Field Value" as the Format Style, and [My Chart Title] for "What fiueld should we base this on?Now you're down to ONE set of Bookmarks.
2 Replies
- ToddChittSuper User
Hello Imagauthamam
Bookmarks can be tricky.
When I read your note about "top level bookmarks" controlling Revenue, Profit, or Cost, I thought that maybe you should try the SELECTEDMEASURE approach:
1) Create the three measures you need, which I suppose you already have.
2) Create calculated column:
Select Measure =DATATABLE ("Measure", STRING,{{ "Revenue" },{ "Profit" },{ "Costs" }})3) Create a Measure:
Selected Measure = SWITCH(SELECTEDVALUE('Select Measure'[Measure]), "Revenue", [Revenue], "Profit", [Profit], "Costs", [Costs])Put a slicer on the page. Use the [Measure] column. Set it up a Button SlicerSet up ONE set of visuals (charts, etc.) and use the [Selected Measure] as the Value column.4) Optional: Create a Measure to be used for Chart Title:My Chart Title = SELECTEDVALUE('Select Measure'[Measure]) & " Used as Chart Title"5) For the Chart title, use a function as the title text. Select "Field Value" as the Format Style, and [My Chart Title] for "What fiueld should we base this on?Now you're down to ONE set of Bookmarks. - ImagauthamamHelper III
Thank you so much ToddChitt . This really worked.