A way to look up a previous Record ID's [Date Created] Field
Hi, thank you in advance for any help,
I am currently trying to figure out a way to look up a previous Record ID's date created and calculate the time between the old record ID's [Date Created] and the new Record ID's [Date Created] to calculate the time between for an SLA report function.
For a description:
I have 1 record that has an imbedded record called "Change History", Inside this change history, It logs any status changes that happen throughout the order.
For Example:
123 John Street (Order Number #27) had a job status of "On Hold", When this changed from on hold to "In Progress" a new change history is logged which would look something like the following:
Embedded report showing all records relating to order number #27
Record ID: #71, Date Created: 28/10/2024 14:22PM Order Created - 123 John Street
Record ID: #84, Date Created: 29/10/2024 08:32AM On Hold - 123 John Street
Record ID: #106, Date Created: 29/10/2024 08:52AM In Progress - 123 John Street
What I want to do is work out the duration between the new Record ID(106)'s Date Created and the old Record ID(84)'s date created (I want to use this formula to do the same for Record ID 71 to Record ID 84 but its off the same basis)
So the end result would return a value of 30 Minutes.
The reason being is I am trying create a countdown timer which is straight forward but once this record is no longer the newest record I need to find the time taken between the 2 fields.
Ok, it's relatively easy to calculate the date created between the most recent child and the previous child. If you want to know the time between each successive child record, that's a whole different question and more difficult.
- Summary field for Max Date Created
- Lookup down to child calling it [Date Created of Most Recent Change History].
- Summary field for Maximum Date Created subject to the filter that the [Date Created] is less than the value in the field [Date Created of Most Recent Change History]. Call this [Date Created of 2nd Most Recent Change History
'er, yur done!