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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

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