Forum Discussion
Anonymous
5 years agoNot applicable
Calculating (adding) distance between multiple locations using longitude and latitude
Hi all, Any help with the following would be great as it is an unique situation. A quick intro into the problem, 1) I have teams who work at different locations each day, and there's a latit...
- 5 years ago
Hi Anonymous ,
You could use Latitude and Longitude to calculate the distance between two locations with following formula:
=acos(sin(lat1)*sin(lat2)+cos(lat1)*cos(lat2)*cos(lon2-lon1))*6371
Then sum up the distances by each person and divide 3 to get the result you need.
ps: 6371 is Earth radius in km.
You can achieve it via either Power Query or DAX method.
Or you can use Google Map API .
You could also check the reference below:
Best Regards,
KellyDid I answer your question? Mark my post as a solution!
Anonymous
5 years agoNot applicable
Hi,
Can anyone help with the above?
Thanks