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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
Anonymous
Not applicable

Selected value with two selections in IF

Hi everyone,

I have a line and combo chart with the line value having the Dax eq, if(selected value = a, [average speed], if(selected value = b, [average speed], blank ())), that all works fine.
However I now also want to add if(selected value= a & b & c ,[average speed], I can't get this to work.

Thank you in advance
1 ACCEPTED SOLUTION
V-pazhen-msft
Community Support
Community Support

Hi, @Anonymous 

 

Can you make the question clear, what do you mean you it doesn't work(dose it return an error or just blank)? 

 

Because for if(selected value= a & b & c ,[average speed], the formula should be correct. It returns a value when the lookupcolumn has a cell that is "abc". 

 

BTW, If you wanted to put them in one IF function:

IF([SelectValue]="a"||[SelectValue]="b"||[SelectValue]="c",[Average Speed])

 

Best,

Paul

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
V-pazhen-msft
Community Support
Community Support

Hi, @Anonymous 

 

Can you make the question clear, what do you mean you it doesn't work(dose it return an error or just blank)? 

 

Because for if(selected value= a & b & c ,[average speed], the formula should be correct. It returns a value when the lookupcolumn has a cell that is "abc". 

 

BTW, If you wanted to put them in one IF function:

IF([SelectValue]="a"||[SelectValue]="b"||[SelectValue]="c",[Average Speed])

 

Best,

Paul

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

Check out the June 2024 Power BI update to learn about new features.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.