Stop 12 · Interactive Reports & StorytellingTopics · 2/9

Bookmarks and Buttons

Part of the Power BI Roadmap

In short

Bookmarks and buttons turn a report into something that feels like an app: a toggle between chart and table, a "Reset filters" button, a menu that jumps between pages.

Bookmarks save a page's current state, such as filters and visible visuals, and buttons can trigger bookmarks, page navigation or drill through.

The jaadu presses a big round button on an oversized TV remote while sticky bookmark ribbons hang from the top of the remote.

Think of it like this

The TV remote's favourite buttons

Your remote has a button that jumps straight to your favourite cricket channel with the volume you like. You saved that state once, and one press brings it back. A bookmark saves a page's state, like filters and which visuals are showing, and a button is the remote key that restores it.

Watch it happen

A chart and table toggle

User
Button
Bookmark
Page

clicks "Table view"

1/4The user clicks a button on the page.

The big ideas

What you need to know

What a bookmark saves

Filters, slicers, visibility, sort order and drill level. Untick Data in its options to save only visibility.

Selection pane

View > Selection lets you show and hide visuals. Set up each state there before adding a bookmark.

Button actions

Buttons can apply a bookmark, go to a page, drill through, go back, or open a web URL.

Reset filters

A bookmark of the page with no slicer selections, on a "Reset" button, is a favourite with users.

How it works

Build a chart and table toggle

  1. 1

    Stack the visuals

    Place a chart and a table in the same spot.

  2. 2

    Hide the table

    In the Selection pane, hide the table and add a bookmark called Chart View.

  3. 3

    Swap and save

    Show the table, hide the chart, and add a bookmark called Table View.

  4. 4

    Untick Data

    For both bookmarks, untick Data so they don't reset the user's slicers.

  5. 5

    Add buttons

    Insert two buttons, set Action > Bookmark to each view. Use Ctrl + click to test in Desktop.

See it in code

Walk through the code

dax
1Reset Button Text =2IF (3    ISFILTERED ( Store[Region] ) || ISFILTERED ( Product[Category] ),4    "Clear filters",5    "No filters applied"6)7 8Reset Button Colour =9IF (10    ISFILTERED ( Store[Region] ) || ISFILTERED ( Product[Category] ),11    "#6C4BD8",12    "#B8B5C9"13)

1/2The button's label changes when either slicer is being used.

Bind these to a reset button's text and fill colour with the fx buttons, so it looks active only when there's something to clear.

Save yourself the pain

Common mistakes

Oops

A toggle bookmark that also resets every slicer the user picked.

Do this instead

Untick Data in the bookmark options when it should only change visibility.

Oops

Testing buttons with a normal click in Desktop and thinking they're broken.

Do this instead

In Power BI Desktop use Ctrl + click. In the Service a normal click works.

Your mission

App-like controls

~30 min

Quick check

You want a bookmark to only change which visuals are visible, without touching the user's slicers. What do you do?

Go deeper

  1. 1Create a toggle that switches between a chart and a table using bookmarks.
  2. 2Build a navigation bar of buttons across pages.
  3. 3Use the Selection pane to manage what each bookmark shows.

More topics at this stop

Stuck on this topic? Ask an Insider

Get 1:1 guidance from people who've walked this exact path — on the InsideEdge app.

Download
InsideEdge