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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
jeffr6596
Frequent Visitor

Problems with date calculation

I have a column for "Date Submitted" and a calculated column for "Due Date".  the Due Date column is calculated for -45 days from a third column "Implementation Date".  My calculated column is working correctly.

 

However, in my Dax measure I am using 

ON TIME = IF([Date Submitted] <= [Due Date], "On Time", "Late")
 
to indicate when an item was submitted on time or not.  I believe this should look for all submitted dates to see if they are before or on the due date.  However, I have some returns showing late when the item was submitted on the due date.
 
In my original data source my date submitted column has the date and time.  However, I have even gone into my querry to change the column to only show the date.   I still get an incorrect return on the on time question.
 
I would appreciate any help.
Thanks
1 ACCEPTED SOLUTION
lbendlin
Super User
Super User

ON TIME = IF(DATEVALUE([Date Submitted]) <= [Due Date]"On Time""Late")

View solution in original post

1 REPLY 1
lbendlin
Super User
Super User

ON TIME = IF(DATEVALUE([Date Submitted]) <= [Due Date]"On Time""Late")

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.