Problem with last()
Hi to all,
I have a table containing 189 records and I get the value of a field from the last record (most recent record) with the command:
last ((select Table. Amount).
In the apps for Mac, iPad and iPhone works properly.
But in the web App (i tried Safari, Chrome, Firefox, Edge, Chromium - macOS and Windows) always gets the record with Id 99.
Date settings are the same in the System and Browsers.
Any ideas?
5 replies
-
sorry
last((select Table).Amount)
-
Something like this?
let last:= last(select Table)select Table where Id= last . Amount
Need some tweaking i guess, can't try here. I'm on my phone...
Steven.
-
Thanks Steven but I tried...
let mylast := last((select Table).Id);
mylastgives 99
-
Yep, I just tried it with Safari and got the same result.
-
OK, i think this is it...
let maxId := max((select Table).number(Id));
maxId
Content aside
- 4 yrs agoLast active
- 5Replies
- 1632Views