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
DMB90
Helper I
Helper I

Multiple OR statements with AND and NOT statements

I have the following formula I'm working on. I want to say if the column contains "error" and the other column is not letters D, W, I, A, F or R, then mark the new column as a true statement. Only the first statement with the D is pulling in properly but not all the other possible conditions.

 

DMB90_0-1654119347503.png

 

 

 

1 ACCEPTED SOLUTION
sevenhills
Super User
Super User

Not clear your image, post the syntax as text ...

 

Try this?

Monday Errors = AND (

         Timesheet[Error] = "Error"

          , NOT Timesheet[Mon - Comment] IN { "D", "W", "I", "A", "F", "R" }

   )

View solution in original post

2 REPLIES 2
sevenhills
Super User
Super User

Not clear your image, post the syntax as text ...

 

Try this?

Monday Errors = AND (

         Timesheet[Error] = "Error"

          , NOT Timesheet[Mon - Comment] IN { "D", "W", "I", "A", "F", "R" }

   )

This works! Thank you!

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