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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

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
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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