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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

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

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

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
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors
Top Kudoed Authors