Switch Between Charts in Power BI – No Bookmarks Needed!

Switching between different visuals in Power BI is usually done with bookmarks. But bookmarks can become complex fast - especially when maintaining a growing report.
Feb 5 / datatraining
In this guide, you’ll learn how to toggle between two visual states inside a single chart, using dummy measures and conditional formatting - no bookmarks required.

By the end, you’ll be able to let users click a button to switch between:
  • A standard column chart (average rent per city), and
  • A box-plot-style view using error bars (min–max and IQR)

Let’s build it.
Step 1: Create the Base Column Chart

Start by plotting the average rent price per city.
Step 2: Add Box Plot Elements Using Error Bars

Box plots need additional series for min–max and inner ranges. Power BI allows error bars, but only one per series, so we’ll fake additional series using dummy measures.

  1. Create two dummy measures: Dummy1=0 ; Dummy2=0
  2. Add them to the same column chart.
  3. Go to Format > Columns > Layout and set “Series overlap” to 100% to make all columns stack perfectly.
  4. Turn off data labels for Dummy 1 and Dummy 2.
Step 3: Configure Error Bars

For Dummy 1 (Min–Max Range):
  • Add error bars.
  • Set Lower Bound to Min Rent.
  • Set Upper Bound to Max Rent.
  • Remove border.
  • Use a light color (e.g., light gray).
For Dummy 2 (Interquartile Range):
  • Add error bars.
  • Set Lower Bound to 25th Percentile.
  • Set Upper Bound to 75th Percentile.
  • Use a slightly different color (e.g., light blue).
  • Increase width and use circular markers.
Step 4: Add a Toggle Control

Use a numeric parameter to let users switch views.
1. Go to Modeling > New Parameter.
2. Create a parameter called Toggle with values 0 and 1.
Min: 0
Max: 1
Increment: 1
3. Add the slicer to your report.
4. In Slicer Settings, enable Single Select and switch to Tile layout.
Step 5: Use DAX to Show/Hide Measures

Update dummy and main measures with logic based on the toggle:
For Dummy 1
Do the same for Dummy 2.

For the Main Column (Average Rent):

Instead of hiding the main chart directly, create a separate measure:
Replace the original measure with this one in the chart.
Step 6: Conditional Axis Formatting
Since Power BI doesn’t let us show/hide the y-axis based on state, we trick it with conditional color formatting.

1. Go to Y-Axis > Font color > Conditional formatting.
2. If Toggle = 0 → color = white (hidden)
    If Toggle = 1 → color = gray (visible)
Final Result

Now your user can switch between two chart styles - with just one visual and no bookmarks:
  • Toggle ON (1): Show Min–Max + IQR ranges using error bars
  • Toggle OFF (0): Show simple average rent columns
This method keeps your report lean, avoids bookmark overload, and improves interactivity.

Hope you like it!

Give it a try and see how it works for you! I’d love to hear what you think or see how you use this trick in your own reports.

How to Power BI

Watch it here

Launch Power BI Reports
that bring your organization
to a fully 
data-driven world.

Power BI Launch

After years of consulting we have developed a holistic solution for launching Power BI Reports in 3 months. From key metrics discovery, to report design, implementation and stakeholders' training. We know precisely how to launch Power BI reports that drive organizations' growth.

Power BI Trainings

Our technical trainings for report developers instantly upskill your teams. Alongside our unique business user trainings the improvement in overall organizational data literacy becomes immediately actionable.

Take your Skills to the Next Level

Power BI Trainings

__________