List transformation

can anyone help me with this issue?

I have the left and the middle list and want to create the right list. > right list=new List

Basically I want to group the content of all braches but one from the middle list, and put this package in the new List and repeat this as many times as many branches i have. (always exclude another branch)
The values of the left list shows how the right list should be built up.

mabye I need some Python Scripting here!?

I’m not sure if it’ll work out for you. anyway check attached…

List (12.8 KB)

Maybe this is more reliable?

List (18.7 KB)


You saved my day! :grinning:
Thanks a lot!