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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Employee
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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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