Forum Discussion
SURYA3696
2 years agoFrequent Visitor
Distance Calculation from Latitude & Longitude Data
Hello All, I am trying to generate distance in KM from the Latitude & Longitude data that I have. The dataset contains more than 3000 lines and the frequency of data output is at a time interval ...
- 2 years ago
You need to use the haversine formula. There is no built in function for this in DAX or M, but the underlying functions are there, like SIN() in DAX or Number.Sin in M.
Seems pretty straightforward, just a bit tedious to build. - 2 years ago
Hello edhans,
Thank you for the solution. This is definitely worked.
edhans
2 years agoCommunity Champion
You need to use the haversine formula. There is no built in function for this in DAX or M, but the underlying functions are there, like SIN() in DAX or Number.Sin in M.
Seems pretty straightforward, just a bit tedious to build.
- SURYA36962 years agoFrequent Visitor
Hello edhans,
Thank you for the solution. This is definitely worked.