Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
IF(
Date([Request_Closed_At]) <= [Effective_SLA_Date],
0,
IF(
Date([Request_Closed_At]) > [Effective_SLA_Date],
(Interval([Request_Closed_At] - [Effective_SLA_Date], 'h') / 24),
0
)
) AS [Days Past Due Date]
The code is designed to calculate the number of days a request is past its due date, based on the comparison between two dates: Request_Closed_At
(the date when the request was closed) and [Effective_SLA_Date]
(the target SLA date). The logic uses conditional checks (IF
) and date functions to determine and output the number of days past due. when i try to use formula avg(days past due date) i get incorrect answer is there a way to calculae the date difference