Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
Sign up nowGet 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...
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 62 | |
| 61 | |
| 42 | |
| 20 | |
| 18 |
| User | Count |
|---|---|
| 122 | |
| 114 | |
| 36 | |
| 29 | |
| 29 |