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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
Joseph_Hchaime
Helper III
Helper III

Switch between multiple columns using buttons/slicer

Hi

 

I have a scenario where I have already calculated columns AND Measures in USD and in Local Currency. I read online that it's possible to create a slicer called Currency with USD and Local Currency as options. Where if the user selects USD, ALL the USD calculated columns and measures show up and the LC columns/measures are hidden and vice versa using the switch() function.

 

However, all the examples i saw were based on a single column or measure. How can I do that for multiple columns/measures? 

 

for instance: ID=1, Sales in Local Currency,Collection in Local Currency,Balance Outstanding in Local Currency
                     ID=2, Sales in USD, Collection in USD, Balance Outstanding in USD.

2 ACCEPTED SOLUTIONS
NikhilChenna
Skilled Sharer
Skilled Sharer

Hi @Joseph_Hchaime ,

Can you share us the sample how is your data and what output are you expecting from it .

 

 

Please check this link it shows how to write a switch for multiple conditions,

https://community.powerbi.com/t5/DAX-Commands-and-Tips/Using-Switch-and-Contains-for-Multiple-Condit...

 

Regards,

Nikhil Chenna

 

Appreciate with a Kudos!! (Click the Thumbs Up Button)
Did I answer your question? Mark my post as a solution!

 

View solution in original post

Hi @Joseph_Hchaime ,

You can achieve this by creating them separtely in a table visual and hide and unhide based on selection.

 

Please go through this link,

https://exceleratorbi.com.au/show-or-hide-a-power-bi-visual-based-on-selection/

https://www.youtube.com/watch?v=QUcW8gudhLw

 

Regards,

Nikhil Chenna

 

Appreciate with a Kudos!! (Click the Thumbs Up Button)
Did I answer your question? Mark my post as a solution!

View solution in original post

3 REPLIES 3
NikhilChenna
Skilled Sharer
Skilled Sharer

Hi @Joseph_Hchaime ,

Can you share us the sample how is your data and what output are you expecting from it .

 

 

Please check this link it shows how to write a switch for multiple conditions,

https://community.powerbi.com/t5/DAX-Commands-and-Tips/Using-Switch-and-Contains-for-Multiple-Condit...

 

Regards,

Nikhil Chenna

 

Appreciate with a Kudos!! (Click the Thumbs Up Button)
Did I answer your question? Mark my post as a solution!

 

Joseph_Hchaime_0-1669812686239.png

Sample of data. I want to create a button or slicer that would hide the LC columns when USD is chosen and vice versa 

Hi @Joseph_Hchaime ,

You can achieve this by creating them separtely in a table visual and hide and unhide based on selection.

 

Please go through this link,

https://exceleratorbi.com.au/show-or-hide-a-power-bi-visual-based-on-selection/

https://www.youtube.com/watch?v=QUcW8gudhLw

 

Regards,

Nikhil Chenna

 

Appreciate with a Kudos!! (Click the Thumbs Up Button)
Did I answer your question? Mark my post as a solution!

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