So, what I want to accomplish is to be able to tell what store a customer is near based on the customer’s address. There would be a table of customers with their addresses and then a table of stores with their addresses. I want to be able to find which store is the shortest distance to the customer’s address.
Is something like this possible in Power BI? I have not created anything yet because I am trying to figure out how this would work.
I did come across the article at https://radacad.com/dynamic-distances-in-power-bi. But the information is written for the distance between two locations. What if I need to run a hundred customer addresses against a table of 75 store locations to determine which is closest and reflect the distance in miles?
After I figure this out, phase 2 is to figure out which customers have not purchased specified products so that I can determine what needs to be stocked at a given store location.
I had a chance to revisit this following the example and I am striking out. See the attached image. It does not recognize the field names, even though I double-checked them.
I created a relationship between the two tables based on the street address but that wouldn’t be the reason its telling me the columns don’t exist and then there is the ATAN2 error.