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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
MCF
New Member

How to get a selector with multiple measures?

I want to try this but it doesnt work, I would like if I select "Pax" I want to show in a bar chart two measures "Consulta $" and "Consulta Pax".

MCF_0-1638804525095.png

If I separate the condition into two parts, it only reads me the first, some idea or solution to what I want to achieve

 

Thank you

2 REPLIES 2
Anonymous
Not applicable

Hi @MCF ,

Could you please provide the formula of measures [Consulta $] and [Consulta Pax]? What's the data type of their return values? What's your final expected result? Please provide the backend logic and special example to describe it. Thank you.

Bset Regards

ValtteriN
Super User
Super User

Hi,

I am pretty sure what you are trying to achieve isn't possible with a single measure. However, I think we can use two measures to achieve what you are trying to do.

Two switch measures:
You can create two measures one of which is your main switch measure and contains all of your options and the second is only used for "Pax" selection and otherwise returns blank.

First measure = var selected = MAX('Measure Slicer'[Measure]) return
SWITCH(selected,"Pax",[Measure 2],"Measure 1",[Measure 1])

Second measure = var selected = MAX('Measure Slicer'[Measure]) return
SWITCH(selected,"Pax",[Measure 1],BLANK())

End result with this:
ValtteriN_0-1638825390738.png


I hope this can be used to solve your issue and if it does consider accepting this as a solution!





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.