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