I am having difficulty with a column in the “Punches” table which uses an App Formula to select the record from “Locations” table that is the closest distance to the LatLong value of HERE().
When navigating to the Form view, the App formula initially returns the correct location, but when I manually change the LatLong coordinates, the App Formula does not recalculate to reflect the other location.
Example: Upon opening the form view, the App Formula initially returns value “Naperville Recon” which is closest to me, but when I try to emulate a different location by manually changing the initial value of HERE() to coordinates close to our Chicago location, “Naperville Recon” is still displayed rather than dynamically changing to “Chicago Recon” as expected.
I have tried several different App Formulas and they all seem to have the same behavior: Displaying the correct value upon opening the form, but do not change dynamically. App Formulas I have tried include:
Thank you for replying Steve, I was hoping you’d see my post. I tried your expression wrapped in ANY(), but the column still won’t recalculate upon manually changing the coordinates of the LatLong column.
I wondered if it had anything to do with the column type being Ref, so I added a text column to the table and tried the App expression there too, but it behaves the same. I also tried it in a virtual column.
In the form I replace the initial value of HERE() with another row’s coordinates that I copy/paste from the Locations table. Upon changing coordinates, I can see the mini map change in the form view, so I can’t make sense of why the app formula isn’t recalculating. I added a virtual column using expression DISTANCE([LATLONG], ANY(SELECT(LOCATIONS[LATLONG], TRUE))) to see if Appsheet was recognizing the change in distance to the nearest record of the locations table when I modify coordinates, and it does.