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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register 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
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.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

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