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!

Solved Solved
0 4 314
1 ACCEPTED SOLUTION

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

View solution in original post

4 REPLIES 4

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

DISTANCE returns a number in Kilometers I believe.

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

Good catch, I was just about to ask that.

Thanks to both of you, working perfectly

Top Labels in this Space