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
Anonymous
Not applicable

Measure SWITCH with Parameter

Combined Measure = IF( SELECTEDVALUE('Category switch views'[Parameter]) = "Country", [% EE by Country], IF( SELECTEDVALUE('Category switch views'[Parameter]) = "Band", [% EE by Band], BLANK() ) )

This measure will return the measure [% EE by Country] if the selected parameter is "Country", [% EE by Band] if the selected parameter is "Band", and BLANK() otherwise. 


However, the chart does not fetch anything. Should I make any changes. 

3 REPLIES 3
Anonymous
Not applicable

Here is the sample Table. I have created two measure [% EE by Country] and [% EE by Band]. Now I am needing to combine this into one measure, so that if the selected parameter is "Country", [% EE by Band] if the selected parameter is "Band", and BLANK() otherwise. 

EEIDCountryBand        
1Japan6       
2India7       
3Turkey8   IndiaJapanTurkeyParameter
4Japan6 Measure% EE by County 30%40%30%Country 
5Japan7 Measure% EE by Band 40%30%30%Band
6Turkey8   678 
7India8       
8India6       
9Turkey6       
10Japan7       
Padycosmos
Solution Sage
Solution Sage

Please try the following. I hope both the tables are related.

Combined Measure =SWITCH(TRUE(), SELECTEDVALUE('Category switch views'[Parameter]) = "Country", [% EE by Country], SELECTEDVALUE('Category switch views'[Parameter]) = "Band", [% EE by Band], "" )

TaylorPBI21
Resolver I
Resolver I

Hi @Anonymous,


Could you add a sample table and then the result you'd expect?😎

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.