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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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