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

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

Reply
Rick528
Frequent Visitor

Toggle Value Categories

Hi, theoretical question about toggling visuals.  Assume I have two maps.  On the first map, the bubbles are sized by (i) number of employees per location.  On the second map, the bubbles are sized by (ii) annual budget per location. Everything else is the exact same.   Is there a simple way to toggle between (i) and (ii) using the same map?  Or, do I need to provide two maps?  Trying to cut down number of visuals on a dashboard.

 

Coming from Excel and PowerPivot where this is very easy to do.  Have no idea how to do it in PBI without using switch.   

2 ACCEPTED SOLUTIONS

So no you are not missing anything.  Switch is pretty easy.

 

 

I wrote an article on another topic here, but the concept is the same as what you need. 

https://exceleratorbi.com.au/measures-on-rows-here-is-how-i-did-it/ 



* Matt is an 8 times Microsoft MVP (Power BI) and author of the Power BI Book Supercharge Power BI.
I will not give you bad advice, even if you unknowingly ask for it.

View solution in original post

Hi Matt.  Thanks for the answer.   I figured it out and implemented.  It slowed the model down considerably.  Not sure why.  Strange becuase just three simple measures are switched ...

 

Anyway, it works, so will use it.  

View solution in original post

5 REPLIES 5
MattAllington
Community Champion
Community Champion

What's wrong with using switch?



* Matt is an 8 times Microsoft MVP (Power BI) and author of the Power BI Book Supercharge Power BI.
I will not give you bad advice, even if you unknowingly ask for it.

Hi Matt, thanks for your reply. Nothing is wrong with switch. It's just that I haven't used it before and I don't mind diving in but wanted to make sure I'm not missing an obvious function.

So no you are not missing anything.  Switch is pretty easy.

 

 

I wrote an article on another topic here, but the concept is the same as what you need. 

https://exceleratorbi.com.au/measures-on-rows-here-is-how-i-did-it/ 



* Matt is an 8 times Microsoft MVP (Power BI) and author of the Power BI Book Supercharge Power BI.
I will not give you bad advice, even if you unknowingly ask for it.

Hi Matt.  Thanks for the answer.   I figured it out and implemented.  It slowed the model down considerably.  Not sure why.  Strange becuase just three simple measures are switched ...

 

Anyway, it works, so will use it.  

My understanding is this is a known "problem".  When you use switch, you are really just using IF, and IF evaluates each option fully even though it only uses one of them.  So it should take 3 times longer with 3 options.  However the fact that this is perceptible probably means that there model is inefficient in some other way.



* Matt is an 8 times Microsoft MVP (Power BI) and author of the Power BI Book Supercharge Power BI.
I will not give you bad advice, even if you unknowingly ask for it.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

Vote for your favorite vizzies from the Power BI World Championship submissions!

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.