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

Try your skills in the Power BI Dataviz World Championship! Round one ends June 26. Join now

Reply
TestTest17891
Advocate I
Advocate I

Create a toggle switch

I am using a field parameter which contains two measures:

Parameter = {
("Sales Price", NAMEOF('Measure'[Sales Price]), 0),
("Unit Sold", NAMEOF('Measure'[Unit Sold]), 1)
}
I can use the Slicer visual and turn on single selection to use one measure at a time. It will look something like:

5SJsr.png

But my requirement is to create a toggle button like:

59dvU.png

 

 

1 ACCEPTED SOLUTION
AmiraBedh
Super User
Super User

There is no default visual in Power BI like the one you want but you can use a custom visual like this one in the AppSource. First, add a parameter in the data field. Then in the visual properties, under switch, set Value(s) for ON: Sales Price and Unit Sold for OFF (or the other way round)

 


Proud to be a Power BI Super User !

Microsoft Community : https://docs.microsoft.com/en-us/users/AmiraBedhiafi
Linkedin : https://www.linkedin.com/in/amira-bedhiafi/
StackOverflow : https://stackoverflow.com/users/9517769/amira-bedhiafi
C-Sharp Corner : https://www.c-sharpcorner.com/members/amira-bedhiafi
Power BI Community :https://community.powerbi.com/t5/user/viewprofilepage/user-id/332696

View solution in original post

1 REPLY 1
AmiraBedh
Super User
Super User

There is no default visual in Power BI like the one you want but you can use a custom visual like this one in the AppSource. First, add a parameter in the data field. Then in the visual properties, under switch, set Value(s) for ON: Sales Price and Unit Sold for OFF (or the other way round)

 


Proud to be a Power BI Super User !

Microsoft Community : https://docs.microsoft.com/en-us/users/AmiraBedhiafi
Linkedin : https://www.linkedin.com/in/amira-bedhiafi/
StackOverflow : https://stackoverflow.com/users/9517769/amira-bedhiafi
C-Sharp Corner : https://www.c-sharpcorner.com/members/amira-bedhiafi
Power BI Community :https://community.powerbi.com/t5/user/viewprofilepage/user-id/332696

Helpful resources

Announcements
Fabric Data Days is here Carousel

Fabric Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

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.