Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.
Check it out now!Microsoft is giving away 50,000 FREE Microsoft Certification exam vouchers. Get Fabric certified for FREE! Learn more
Hello,
I have a problem. In order to find out the distances between two places, I've created a matrix to get the information. The rows and columns are taken from two different sharepoint lists, because the columns represent the places of departure and the places of arrival. In both lists, I have the cities of the locations, as well as the latitude and longitude.
I calculate the distance as a measure between all the locations using this formula:
Which I found on another power bi forum by doing some research, which gives me a consistent result on most of the values I looked at (of the order of a kilometre difference so that's good, the aim being to have only an approximation), but when I display the subtotals of the rows and columns, I don't have the right values, and I haven't found the solution on another forum (I may have searched incorrectly).
Thank you in advance for your reply.
Solved! Go to Solution.
For those who will ask the question, I made a crossjoin to create a new table with all the possibilities :
AllCombinations =
and then I created a measure that allows me to get the total distances:
For those who will ask the question, I made a crossjoin to create a new table with all the possibilities :
AllCombinations =
and then I created a measure that allows me to get the total distances: