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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
MetrumOBE
Regular Visitor

Build end to end transportation paths from data rows giving ship from and ship to info

Dear Community,

 

I have an issue building complete transportation paths used by trucks regarding the data sample below :

 

Product; Origin; Destination; #ofPart

1; A; B; 10

1; A; C; 20

1; A; D; 10

1; D; E; 5

1; D; F; 5

1; F; A; 5

 

I need to retrieve full paths with their respetive height, in order to select the one on which maximum of parts have been carried out.

 

Expected Result :

 

Porduct; FullPath; SumOf#OfPart

1; A>B; 10

1; A>C; 20

1; A>D>E; 15

1; A>D>F>A; 20 (If it go back to its origin the flow is stopped)

 

Could you please help me to perform a DAX or M transformation in order to obtain this result ?

 

Thank you in adavance

3 REPLIES 3
v-huizhn-msft
Microsoft Employee
Microsoft Employee

Hi @MetrumOBE,

Based on my understanding, you result should be the following, right? There is not regular for your data after research.

1; A>B; 10
1; A>C; 20
1; A>D; 10
1; A>D>E; 15
1; A>D>F; 15
1; A>D>F>A; 20

I am not specific for M, you can post it to Power Query forum to get professional support if you want.

Thanks,
Angelia

Hi Angelia,

 

Thank you very much for your answer.

 

I will try to post on TechNet forum.

 

Olivier

Hi @MetrumOBE,

Got it. Thanks for understanding.

Best Regards,
Angelia

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Top Solution Authors