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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

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
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.