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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
DMB90
Frequent Visitor

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

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.