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?
Please share a sample data. A formula is needed. But we can't create a formula without data and its structure.
Here's an example, there are a few more columns but these are all details not needed for the calculation