Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.
SOLVED

Find Min length of levels per group in flattened hierarchy

OJet
7 - Meteor

Hi Guys, 

 

I am working with a hierarchy. I flattened it so that columns 1-11 in the example below represent the  hierarchy path depth for  each item. Below is a small sample of the data (for the first item with ID 188- parent is item 186, grand- parent item 6, etc)

I am stuck with being able to identify the shortest depth per Some Grouping Column.  Column 'Min Length' is what I need to get. Would you be able to help?

SOME GROUPINGItem ID1234567891011Min Length
A188186 188        3
A2323         3
A263260 263        3
A921447 916 917 918 920 921    3
A266260 265 266       3
A919447 916 917 918 919     3
A1025447 1,024 1,025       3
A16523 74 164 165      3
A1004447 916 917 918 1,003 1,004    3
A488447 448        3
B494447 450 489 490 493 494    8
B964447 916 917 918 946 958 961 963 964 8
B926447 916 917 918 946 926   8
C756447 525 528 737 756     7
D304280 301 302 303 304     5
D284280 282 284       5
D319280 301 302 314 318 319    5

 

Thank you!

3 REPLIES 3
Qiu
21 - Polaris
21 - Polaris

@OJet 
Hope this is what you need.

0110-OJet.PNG

OJet
7 - Meteor

 Thank you so much, exactly what I needed!

Qiu
21 - Polaris
21 - Polaris

@OJet 
Glad to help and thank you for the accept mark also

Labels