Help with Distance between HERE() and Latlong < X

Hello,
Can someone help with this? I am trying to have the distance between HERE() and a known LatLong be a qualified Valid_If if the distance is less than 1/2 mile.

I tried DISTANCE(HERE()-[Lat Long Column])<0.5

But that’s not working

Thanks in advance!

I believe the correct syntax is

DISTANCE(HERE(), [LatLong])<0.5

Just in case you are applying the valid_if to a DECIMAL type column that already has a distance expression in app formula , then I believe your valid_if could be a simpler [_THIS] <0.5

Edit: Minor correction in column type description, from DISTANCE to DECIMAL

3 Likes

DISTANCE returns a number in Kilometers I believe.

2 Likes

Yes,I also believe so. If @Joe_Seiler wishes to capture the distance in miles for half a mile, then correct expression probably would be

DISTANCE(HERE(), [LatLong])< 0.805

3 Likes

Good catch, I was just about to ask that.

Thanks to both of you, working perfectly

2 Likes