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
AlGrant
Frequent Visitor

Help with IF statement and multiple conditions

Hello,

 

I'm trying to flag items in our app tracker list as at risk based on timeline and status and could use some guidance. I am new to Powerbi. 

 

I have a list of items along with Status column and a Start Date column. I want to flag items as at risk if they are not "complete" ("in progress" or "not started") and are past their start date. I would also like to flag items as as at risk if they blank start date, but not those which are complete.

 

Below is what I have so far but that does not exclude the completed items that have no date:

 

At Risk Decom date (y/n)
= IF('CMI Application Tracker'[Decom Status (remove blanks)] <> "Complete"
&& 'CMI Application Tracker'[On-Prem Decom Date] < TODAY() || 'CMI Application Tracker'[On-Prem Decom Date] =BLANK() , "Yes", "No")
 
AlGrant_0-1680545792287.png

 

1 ACCEPTED SOLUTION

After re-reading, I guess all that have a status of Complete are not a risk.

At Risk Decom date (y/n) 2 = 
IF(
    'CMI Application Tracker'[Decom Status] <> "Complete"
        && OR(
            'CMI Application Tracker'[On-Prem Decom Date] < TODAY(), 
            'CMI Application Tracker'[On-Prem Decom Date] = BLANK() ),
    "Yes",
    "No"
)

View solution in original post

5 REPLIES 5
grantsamborn
Solution Sage
Solution Sage

Hi @AlGrant 

I'm not quite sure if I understand completely.

Maybe try a calculated column like this:

 

 

At Risk Decom date (y/n) = 
IF(
    ('CMI Application Tracker'[Decom Status] <> "Complete"
        && 'CMI Application Tracker'[On-Prem Decom Date] < TODAY()
    )
    ||
    ('CMI Application Tracker'[Decom Status] = "Complete"
        && 'CMI Application Tracker'[On-Prem Decom Date] = BLANK()
    ),
    "Yes",
    "No"
)

 

 

 

 

Let me know if that helps.

Hi, thanks for the help, unfortunately that still flags items as at risk that are complete but have blank on-prem  decom dates

After re-reading, I guess all that have a status of Complete are not a risk.

At Risk Decom date (y/n) 2 = 
IF(
    'CMI Application Tracker'[Decom Status] <> "Complete"
        && OR(
            'CMI Application Tracker'[On-Prem Decom Date] < TODAY(), 
            'CMI Application Tracker'[On-Prem Decom Date] = BLANK() ),
    "Yes",
    "No"
)

Thank you! 

If I change it to <> BLANK(), then the results don't match your 3rd column (which I thought was the expected result.)

 

pbix: https://drive.google.com/file/d/1FuN_LCenyMu27R5vD7RTnYlKUMzaIyqc/view?usp=share_link

 

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!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 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.