0

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

null
    • Village of Lumby
    • Village_of_Lumby
    • 4 yrs ago
    • Reported - view

    To clarify,

     

    Only when prevdate is evaluated to be November 1, 2020, it is not able to retrieve any columns from the record.

    • sebastian
    • 4 yrs ago
    • Reported - view

    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

    • Village of Lumby
    • Village_of_Lumby
    • 4 yrs ago
    • Reported - view

    Thank you so much! Checking it out now.

Content aside

  • 4 yrs agoLast active
  • 3Replies
  • 406Views