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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply

IF Function 2 conditions

Hi 

 

I am trying to get an IF dax to work, I have the one I used in excel but can't seem to get it to work in power BI. This is my excel reference: 

 

=IF([Non-Compliant]>0, IF(OR([Comments]=0, [Evidence Files]="Without Evidence"), "No", "Yes"), "Needs evidence and/or comments")

 

Essentially what I want to happen is if the non-compliant is >0 the following occurs: 

No comments or Evidence (seperate columns)= Needs Evidence and or comments

Has Comments = Yes

Has Evidence (says "without evidence" when no evidence) = Yes

 

Thanks 🙂 

 

1 ACCEPTED SOLUTION

@PowerBI-Curious

 

As I tested, your expression works properly. You may verify your logic to get your expected result.

 

Column = IF('sample'[Non-Compliant]>0,IF('sample'[Comments]="0" || 'sample'[Evidence Files]="Without Evidence","No","Yes"),"Need comments and or Evidence")

777.PNG

 

 

Regards,

View solution in original post

4 REPLIES 4

Hi @anupampandey

 

Here is a link to the sample data: https://1drv.ms/x/s!ArM9L8ohYGT4gQhszs0ssIc8haUT

 

Thank you 🙂

@PowerBI-Curious

 

As I tested, your expression works properly. You may verify your logic to get your expected result.

 

Column = IF('sample'[Non-Compliant]>0,IF('sample'[Comments]="0" || 'sample'[Evidence Files]="Without Evidence","No","Yes"),"Need comments and or Evidence")

777.PNG

 

 

Regards,

Thank you @v-sihou-msft 🙂

anupampandey
Helper III
Helper III

@PowerBI-Curious,

 

Will you please share some sample data?

 

Thanks,

Anupam

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 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 Solution Authors
Top Kudoed Authors