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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

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
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors