Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
BhoomiT
Frequent Visitor

How to calculate distance of latitude and longitude using data in single file

I have a lat long file for the Indian geolocation.

 

Want to calculate the distance between the geo-locations in the same territory. Data is available for Region, Branch, and territory. Where Region is the highest level of hierarchy and Territory is the lowest level of hierarchy.

 

1) I want to calculate the distance between each lat long in a territory.

2) Want to highlight data points in a 3 km radius from a selected lat-long.

 

The sample data points:

 

RegionBranchTerritoryDealer CodeLatitudeLogitude
aaaaa002D00002925.4514581.87366
bbbbb002D00004825.4727381.85761
ccccc002D00008425.4491581.7614
ddddd002D00016525.4560981.87309
aaabc002D00019225.4569781.87075
cccde002D00019625.4883181.8486
ccefg002D00022225.4654281.85095
dddfg002D00029525.5296881.85361
Bzzzzz002D00029825.4623481.85505
Byyyyy002D00030825.4946181.86021
Bmmmmm002D00031825.6231282.00485
Bzzxyz002D00054125.4661681.85084
Byyyzm002D00064925.4507381.78039
Byyzyq002D00066625.4573181.87041
Bmmmpq002D00107025.4539881.86141
4 REPLIES 4
BhoomiT
Frequent Visitor

The issue is resolved using ArcGSI Maps for Power BI. Thank you, Amit for your efforts.

BhoomiT
Frequent Visitor

The actual file contains more than 40K lat-longs.

amitchandak
Super User
Super User

@BhoomiT , refer if these 2 can help

https://stackoverflow.com/questions/27928/calculate-distance-between-two-latitude-longitude-points-h...

https://radacad.com/dynamic-distances-in-power-bi

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Thank you for your response. 

I have calculated the distance in a measure. But I am not able to create a slicer using the measure.

How to create a visual that provides 3 km radius from a selected lat-long?

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors