Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by watching the DP-600 session on-demand now through April 28th.
Learn moreJoin the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now
I have a data set of store locations (100+ rows) and want to work out for each row what it's next nearest store is, from the same list. To do this in excel I would use an array function work out the distance between all stores using their coordinates, then find the minimum. Is there an easier way to do this in Power BI so that when the list is updated it automatically calculates?
Similarly is there a way to do this so I can find stores within a certain radius of a chosen store?
Thanks!
Hi @saferguson,
Please share a sample data. A formula is needed. But we can't create a formula without data and its structure.
Best Regards,
Dale
| Store | Lat | Long | Size (sqm) | Region |
| A | 51.50735 | -0.12776 | 100 | London |
| B | 51.51178 | -0.12319 | 200 | London |
| C | 53.48076 | -2.24263 | 300 | Manchester |
| D | 53.40837 | -2.99157 | 200 | Liverpool |
| E | 36.31342 | -95.6216 | 100 | Bath |
| F | 52.40682 | -1.51969 | 150 | Coventry |
Here's an example, there are a few more columns but these are all details not needed for the calculation
Check out the April 2026 Power BI update to learn about new features.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
| User | Count |
|---|---|
| 44 | |
| 38 | |
| 34 | |
| 20 | |
| 16 |
| User | Count |
|---|---|
| 66 | |
| 65 | |
| 30 | |
| 26 | |
| 25 |