Days since last updated

I have 2 columns in my table where I am trying to calculate the number of days since the row was last updated.

The โ€˜last updatedโ€™ column is a ChangeTimestamp watching columns for changes.

The โ€˜DaysSinceUpdateโ€™ is a number column with App Formula = HOUR(TODAY() - [Last Updated]) / 24

When I look at a details form I get a โ€˜-1โ€™ result on the field, but when clicking into the form view the correct duration shows. What am I missing?

Details View

Form Voew

Solved Solved
0 4 287
1 ACCEPTED SOLUTION

App Formula expressions in real columns will only re-calculate when the record is edited.
App Formula expressions in virtual columns will be re-calculated upon every sync.

View solution in original post

4 REPLIES 4

Also seeing my data source has the value โ€˜-1โ€™ which is incorrect

This is actually a different problem. The โ€˜-1โ€™ value is because the form has not populated a value in the row yet.
So - the field โ€˜DaysSinceUpdateโ€™ is not being triggered or calculated until I open the form view.
Should I be using a formula in my data source to calculate this instead?

App Formula expressions in real columns will only re-calculate when the record is edited.
App Formula expressions in virtual columns will be re-calculated upon every sync.

Doh! Thank you, @Marc_Dillon

Top Labels in this Space