I have a table that is formed like this for example in a geodatabase:
| Date | PreviousValue | CurrentValue |
| 22/10/2023 | 250 | 315 |
I'm creating an attribute rule whereby when a row is created in the table, the current value would then be automatically entered in the new previous value like so:
| Date | PreviousValue | CurrentValue |
| 22/10/2023 | 250 | 315 |
| 23/10/2023 | 315 | 456 |
I have decided that I can order the date like so:
var ord = Top(OrderBy(fs, 'Date DESC'), 2);
To get the previous date, however I'm trying to return the value in that row. Is there an arcade expression for this? Any help appreciated.