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

July 28 - August 9 | Final Round of the Power BI Dataviz World Championships. This is your chance. Learn more

Reply
sully343
Frequent Visitor

Multiple If statement

I've tried multiple ways and can't seem to get this to work...

 

I want to look at the columns FMLAIntermittent and Assignment 

 

If FMLAIntermittent is null and assignment is not: Training, Other, Communications

 

if both are true: Ops

otherwise, NULL

 

 

 

OPS = IF(LongTermLeaveStatus[FMLAIntermittent] = NULL && (LongTermLeaveStatus[Assignment] <> "Training" || LongTermLeaveStatus[Assignment] <> "Other"), "Ops", Blank)

 

 

1 ACCEPTED SOLUTION
Samarth_18
Community Champion
Community Champion

Hi @sully343 ,

 

You could try below code:-

OPS =
IF (
    AND (
        LongTermLeaveStatus[FMLAIntermittent] = BLANK (),
        LongTermLeaveStatus[Assignment] IN { "Training", "Other" }
    ),
    "Ops",
    BLANK ()
)

Best Regards,
Samarth

If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
Connect on Linkedin

View solution in original post

3 REPLIES 3
Samarth_18
Community Champion
Community Champion

Hi @sully343 ,

 

You could try below code:-

OPS =
IF (
    AND (
        LongTermLeaveStatus[FMLAIntermittent] = BLANK (),
        LongTermLeaveStatus[Assignment] IN { "Training", "Other" }
    ),
    "Ops",
    BLANK ()
)

Best Regards,
Samarth

If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
Connect on Linkedin

That worked! I just switched the "ops" and Blank response, but it did what I needed it to! Thank you!

FarhanAhmed
Community Champion
Community Champion

Try below

 

OPS = IF(ISBLANK(LongTermLeaveStatus[FMLAIntermittent])=TRUE && (LongTermLeaveStatus[Assignment] <> "Training" || LongTermLeaveStatus[Assignment] <> "Other"), "Ops", Blank)






Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!

Proud to be a Super User!




Helpful resources

Announcements
Fabric Community Sticker Design Challenge Barcelona Carousel

Fabric Community Sticker Challenge - Barcelona 2026

If you love stickers, then you will definitely want to check out our community sticker challenge, Barcelona edition!

July Power BI Update Carousel

Power BI Monthly Update - July 2026

Check out the July 2026 Power BI update to learn about new features.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Top Solution Authors