Selecting date from does not appear to work only for November 1st, 2020
There are many instances in the app where we need to select the previous date“s entry and populate - Example; populate with yesterday”s meter readings.
Originally, I used the Id field to identify the previous entry; however, sometimes we need to go back and add entries so this method did not work consistently. Now, I“ve tried using this code to select the previous entry based on date. It works well for everything but not for November 1st, 2020.
let prevdate := Date - 1;
”Pump1 (total hours)“ - max((select Water where Date = prevdate).”Pump1 (total hours)“)
Can anyone provide a suggestion or correction?
Cheers,
3 replies
-
To clarify,
Only when prevdate is evaluated to be November 1, 2020, it is not able to retrieve any columns from the record.
-
Have you tried this with “Chaining Records”? There is a training session on youtube with Ninox to describe this: https://www.youtube.com/watch?v=eaAHmt5hy90&t=1062s
-
Thank you so much! Checking it out now.
Content aside
- 4 yrs agoLast active
- 3Replies
- 406Views