Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
I recently asked a question but think it was the wrong question so will take it back a step and see how you would do this.
I am trying to calculate the distance between two lat/long points at sea (so in nautical miles). The problem I have is that one set of lat/longs is in one table, and the other location is in another. The formula i would normally use with all the lat/longs n the same table is:
Hi Roger,
Would you be able to provide a screenshot of the data model? I would like to see the relationship between those two tables you refer to.
Regards,
Adrian
Hi Roger,
You can use the function RELATED to use a value from a table on the "one side" of the relationship.
This means you could create a calculation like;
Thanks very much, it's worked in as much as i can select the columns from the other tables in DAX (but only into a new column and not a new measure).
I'm still getting an error though. I noticed the last related statement is greyed out, is this the issue?
Thanks a lot @avanderschilden
I fixed that issue but still having trouble with the usual error message:
Thanks again. I tried this as a measure but i am back to my original error. sorry for all the questions. any more ideas?
I created a measure that is quite similar (some "(" and ")" on different place) and don't get any errors;
Please review your code, because as you can see in my measure, RELATED works completely fine.
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 6 | |
| 5 | |
| 4 | |
| 4 | |
| 4 |
| User | Count |
|---|---|
| 25 | |
| 21 | |
| 10 | |
| 8 | |
| 8 |