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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request 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
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.

Top Solution Authors