Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The FabCon + SQLCon recap series starts April 14th at 8am Pacific. If you’re tracking where AI is going inside Fabric, this first session is a can't miss. Register now

Reply
vjnvinod
Impactful Individual
Impactful Individual

switch button

Hi Community,

 

 

I need to create a switch button/dropdown slicer, name of the switch button/dropdown should be variance$ and Variance%

don't prefer bookmark option, what is the other way to achieve that? here is my graphs below.

customer wants to see one at a time, so when he/she selects variance$, it should bar graph with dollar value and vice versa

 

switchrequirement.png

 

 

 

2 REPLIES 2
tex628
Community Champion
Community Champion

Create a small table with a 2 cell column, "$" & "%". 


Use this column in a slicer.


Create 2 measures, both using a selectvalue() to determine the selected variance. 


The measures should return the relevant value if the correct variance is selected, otherwise they should return BLANK().


Finally use both measures in the same graph. One should give you a value and one should return blank, depending on the selection.

To my knowledge there is no way to swap between % and $ on a single measure.


Connect on LinkedIn
Anonymous
Not applicable

Hi @vjnvinod ,

 

Besides bookmark method, you can create a new table with a column, in that column you may create 2 values:

variable % and variable $.

Then put the column as a slicer, it's a single-selected slicer.

In your measure, you can write:

if(max(your_column_name) = "variable %", your % expression, your $ expression)

 

Please try

Aiolos Zhao

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.