The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
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.
User | Count |
---|---|
16 | |
8 | |
7 | |
6 | |
6 |
User | Count |
---|---|
26 | |
13 | |
12 | |
8 | |
8 |