Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

Total Distance Traveled

so i have a table with an ID column, each ID has many rows to it. for any of the IDs i have an TA History Airport column means which airport it has traveled to, and another column tells the date it has done so, i am trying to figure out a way to calculate total distance traveled for each ID either in a meansure or a separate column, total distance as in from air port to air port. below is the table. I understand this is a really painful problem any help is appreciated.

 

TA History.PNG

2 REPLIES 2
Greg_Deckler
Community Champion
Community Champion

@Anonymous - Is this perhaps a Transitive Closure issue? https://community.powerbi.com/t5/Quick-Measures-Gallery/Transitive-Closure/m-p/783828#M388



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...
Sumanth_23
Memorable Member
Memorable Member

hi @Anonymous - Few questions on the dataset. 

#1 - What are the records with nulls for Airport history and Date signify?

#2 - Is there a another column for source airport airport? 

#3 - Do you have another table which has the distance between 2 given airport codes

#4 - Is there any way you can share the sample set of the data?  

Did I answer your question? Mark my post as a solution! Appreciate your Kudos!

Proud to be a Super User!



Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.