Forum Discussion
- PriscillaFramar7 years agoQrew Trainee
Used what you suggested except Date Delivered is Actual Finish Date.
If(
[Status] = "Delivered"
and [Actual Finish Date] >= ToDate([Calculated Finish Date]),
ToDays([Actual Finish Date] - ToDate([Calculated Finish Date])),
Max(0, ToDays(Today() - ToDate([Calculated Finish Date]))))The line: ToDays([Actual Finish Date] - ToDate([Calculated Finish Date])), give me the warning of �Expecting Duration but found number�
- QuickBaseCoachD7 years agoQrew Captainbut does the formula save?
- PriscillaFramar7 years agoQrew Traineethe formula is saved. the days overdue value is wiped out.
here is a clean scenario on a app that you could walk through to see what I am referring to:
if you download the following app under sample app: Dynamic Dashboard by Bill Marshall 24 May 17and look at any task that is marked overdue. I will used the ROI assessment task with the start date of 4-23-2015 for example:
This shows the task being 1458 days overdue.
If I change the status to Completed, the overdue date gets wiped out. (This was my original formula)
I would like to keep the # of days overdue so I can obtain metrics on how we did meeting deadlines.
I tried implementing the following formula which does not wipe out this value in days overdue, however the number of days keeps incrementing ever day. How can I get the Days Overdue entry to stop incrementing once the status is marked completed?
If(ToDays(Today() - ToDate([Calculated Finish Date])) <= 0, null, Today() - ToDate([Calculated Finish Date]))
- QuickBaseCoachD7 years agoQrew CaptainThe formula I suggested is supposed to calculate the days overdue only if they were overdue. Is that what you wanted?
What is not working with the formula I suggested? - PriscillaFramar7 years agoQrew Trainee
this is the results from my original formula
If([Status] = "Delivered", null, ToDays(Today() - ToDate([Calculated Finish Date])) <= 0, null, Today() - ToDate([Calculated Finish Date]))
- Initial task shows status �In Process� with days overdue being equal to 7
- If I set the status to delivered, the days overdue field becomes Null
When I add in your formula to Days Overdue (I get the warning I specified, but the formula does save)
If(
[Status] = "Delivered"
and [Actual Finish Date] >= ToDate([Calculated Finish Date]),
ToDays([Actual Finish Date] - ToDate([Calculated Finish Date])),
Max(0, ToDays(Today() - ToDate([Calculated Finish Date]))))- All Days Overdue turn to null
- If I set the status to Delivered, the Days Overdue is still null
I want to see days overdue for any status and once marked delivered, stop increasing the date
- QuickBaseCoachD7 years agoQrew CaptainUsing my formula,
For an example record which has the Status Delivered, can you tell me what value you have for the fields
[Actual Finish Date]
[Calculated Finish Date]
and what the result is? - PriscillaFramar7 years agoQrew TraineeActual Finish Date = 4-24-19 Calculated Finish Date = 4-19-2019 so I would expect day overdue to be 5
- QuickBaseCoachD7 years agoQrew CaptainCan you tell me the Status of that record and also confirm that the field type for the formula field is formula numeric?
- PriscillaFramar7 years agoQrew TraineeDays Overdue is a Duration Formula
Status is set to Delivered - QuickBaseCoachD7 years agoQrew CaptainThe formula I provided assumed that this was a formula numeric field type. Try changing the field type to formula numeric.