Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Get Fabric certified for FREE! Don't miss your chance! Learn more
I am getting Errow when calculating distance between two cities.
I used this formula
In M through creating custom column with sample LAT format as 45.5105 (decimal degrees)
Lat1_Rad=([Latitude1]/180)*Number.PI Lon1_Rad=([Longitude1]/180)*Number.PI Lat2_Rad=([Latitude2]/180)*Number.PI Lon2_Rad=([Longitude2]/180)*Number.PI Distance_KM=Number.Acos(Number.Sin([Lat1_Rad]) * Number.Sin([Lat2_Rad]) + Number.Cos([Lat1_Rad]) * Number.Cos([Lat2_Rad]) * Number.Cos([Lon2_Rad]-[Lon1_Rad])) * 6371
Thanks for your attention on this, but i need in Miles and need to know how to use your formula in my calculation.
You can get the results in miles and then do a convertion multiplying the result by 1.6
Let me explain my use case.
This is my data
I need two filters as shown below
From City and Two City, When i select Dewitt and Bentonville, i need to know the distance between them.
I have two formula
Any help on this use case...
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 68 | |
| 59 | |
| 44 | |
| 20 | |
| 15 |
| User | Count |
|---|---|
| 104 | |
| 103 | |
| 37 | |
| 27 | |
| 26 |