Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register 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.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
14 | |
11 | |
10 | |
10 | |
10 |
User | Count |
---|---|
16 | |
13 | |
12 | |
11 | |
8 |