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! Learn more

Reply
Anonymous
Not applicable

If condition

I need help with the if condition. The third condition is not being applied where i am using and condition together with if.Can anyone please tell me the issue here?

 

 

 

 

IF and issue.PNG

1 ACCEPTED SOLUTION

Hi @Anonymous 

You could add a pair of parentheses to wrap the third condition in this if statement. This should work.

042205.jpg

Regards,
Community Support Team _ Jing
If this post helps, please Accept it as the solution to help other members find it.

View solution in original post

3 REPLIES 3
HotChilli
Super User
Super User

we can't see your data so can't give you an exact answer but you can debug it from your side.

Remove all the other 'if' tests so that you only have the line with the 'and's (put a simple string in the 'else').

Now, copy the line somewhere else (text editor or something - just so you don't lose it)

Remove all the 'and' conditions to make the 'if' conditions work.  Then add 1 'and' condition back in.  See if it breaks. When it works, add another 'and' condition in, then repeat etc. 

Anonymous
Not applicable

amount.PNG

 

This is the data i have circled the values as well.

 

Hi @Anonymous 

You could add a pair of parentheses to wrap the third condition in this if statement. This should work.

042205.jpg

Regards,
Community Support Team _ Jing
If this post helps, please Accept it as the solution to help other members find it.

Helpful resources

Announcements
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!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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 Kudoed Authors