Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
I have three tables which i am using in order to calculate the distance between two lat/longs.
Table A :
X, lat , long
Table " From A" :
From A = SUMMARIZECOLUMNS(
Table B:
SITE ID CI128 HXL = SUMMARIZECOLUMNS('A'[X])
measure to calculate distance :
Tom,
Thankyou for the response .
Here’s the complete details on data structure
Table A :
LONGITUDE | LATITUDE | X |
-96.6 | 32.9 | A |
-96.9 | 33 | B |
-96.5 | 32 | C |
-97.7 | 31 | D |
-96 | 32.2 | A |
-97 | 32.1 | B |
-96.5 | 33 | E |
-97.7 | 31 | X |
Table B = SUMMARIZECOLUMNS('A'[X])
From A = SUMMARIZECOLUMNS(
'A'[X],
'A'[LATITUDE],
'A'[LONGITUDE]
)
OUTPUT TABLE :
X (coming from table A) | X(Coming from table From A) | Distance(miles) |
A | C | 14.99815 |
C | A | 14.99815 |
A | B | 24.38354 |
B | A | 24.38354 |
Now I need to rank column [ X(Coming from table From A) ] based on values in column " distance(miles)" .
Hope this explains the query in details..
Thankyou
Tanvi
Hey,
please provide a pbix file that contains some sample data, but still represents the data model, upload the file to onderive, dropbox, and share the link (if you use xlsx for the data creation, upload the xlsx file as well).
Regards,
Tom
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
147 | |
85 | |
66 | |
52 | |
46 |
User | Count |
---|---|
215 | |
90 | |
83 | |
66 | |
58 |