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

Excluding blanks when determining if an item is submitted before a date

I am working on a report and have run into a roadblock.  I would greatly appreciate assistance.

 

I have a table: Annualisp

I have a column: Date of Total Completion

I have a different column: Implementation Date

 

I am attempting to write a dax measure to calculate a "Yes" or "No" response if the Date of Total Completion was prior to the Imp Date.

 

I did that by writing 

Total Complete by Imp Date = IF(DATEVALUE([Date of Total Completion]) < [Implementation Date], "Yes", "No")
 
However, there are times when the Date of Total Completion field is blank.  With the above measure it counts all of those as "yes"
 
How do I write the measure in a way that will exclude all blank fields in the Date of Total Completion column?
Thanks 
1 ACCEPTED SOLUTION

Thanks so much.  I changed the blank is no to blank is blank and in another measure counted the "yes" from the column.  Worked great for my purpose.

View solution in original post

2 REPLIES 2
ToddChitt
Super User
Super User

You can have nest IF statements in DAX. So maybe first check for a NULL value:

Total Complete by Imp Date = 

          IF ( ISBLANK ( [Date of Total Completion] ), "No", 

                 IF(DATEVALUE([Date of Total Completion]) < [Implementation Date], "Yes""No"),

          )




Did I answer your question? If so, mark my post as a solution. Also consider helping someone else in the forums!

Proud to be a Super User!





Thanks so much.  I changed the blank is no to blank is blank and in another measure counted the "yes" from the column.  Worked great for my purpose.

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.