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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Anonymous
Not applicable

The value is null but the formula is showing pass, based on my condition, need help

I am trying to calculate whether a job is a pass or fail based on the SLA using below formula:

 

Finish Date SLA = IF(F_TASKS[TA_FINISH_DATE] <= F_TASKS[TA_EST_DATE],"Pass","Fail" )
 
but for some jobs the TA_FINISH_DATE (Date Closed) has not been updated yet, so due to null value the condition still says it is a pass as per the below image: what I need is, if there is a null value it should either take todays date and do the calculation to pass/fail. I am new to power bi and trying to learn stuff, i would highly appreciate any support.

 

Capture.PNG

 

Regards,

 

Fahad

 

1 ACCEPTED SOLUTION
Greg_Deckler
Community Champion
Community Champion

So like this?

 

Finish Date SLA = 
  IF(
    ISBLANK(F_TASKS[TA_FINISH_DATE]),
    IF(TODAY() <= F_TASKS[TA_EST_DATE],"Pass","Fail" ),
    IF(F_TASKS[TA_FINISH_DATE] <= F_TASKS[TA_EST_DATE],"Pass","Fail" )
  )

 



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

View solution in original post

6 REPLIES 6
v-kelly-msft
Community Support
Community Support

Hi @Anonymous ,

 

Try this :

 

 

Finish Date SLA = 
  IF(
    F_TASKS[TA_FINISH_DATE]= BLANK(),
    IF(TODAY() <= F_TASKS[TA_EST_DATE],"Pass","Fail" ),
    IF(F_TASKS[TA_FINISH_DATE] <= F_TASKS[TA_EST_DATE],"Pass","Fail" )
  )

 

 

 
Best Regards,
Kelly
Did I answer your question? Mark my post as a solution!

 

Greg_Deckler
Community Champion
Community Champion

So like this?

 

Finish Date SLA = 
  IF(
    ISBLANK(F_TASKS[TA_FINISH_DATE]),
    IF(TODAY() <= F_TASKS[TA_EST_DATE],"Pass","Fail" ),
    IF(F_TASKS[TA_FINISH_DATE] <= F_TASKS[TA_EST_DATE],"Pass","Fail" )
  )

 



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...
Anonymous
Not applicable

worked perfectly and the result is correct as expected, thank you very much.

 

I need alot of support from this forum to be a power bi champ.

 

Really appreciate.

 

Any time @Anonymous !

 



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...
amitchandak
Super User
Super User

@Anonymous , Try like

//march release

Finish Date SLA = IF(F_TASKS[TA_FINISH_DATE] <= coalesce(F_TASKS[TA_EST_DATE], today()),"Pass","Fail" )

 

//Before march release

Finish Date SLA = IF(F_TASKS[TA_FINISH_DATE] <= if(isblank(F_TASKS[TA_EST_DATE]),today(),F_TASKS[TA_EST_DATE]),"Pass","Fai

 

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

Thank you very much for your quick reply, but it is giving me the same result.

 

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.