I am trying to create a data tree that is based on a different data input at a second tier.
So there are three data inputs, A B and C, so what i am trying to do is to subdivide the list in A using the set of pattern from B, then further subdivide it based on the input from C. I have attached a screenshot as a reference.
Dear @waqgera_dawaa
please post the .gh so we can play with it.
the panel at the right is the data you expect ?
sorry but I can somehow not follow your question - can you try to explain it in a more visual way - for example with people, places and fruits ?
First you sort people to 4 different rooms ?
Now you want to display that they eat different fruits ?
Adam
Ben
Carl
Dan
Eli
Finn
Gus
Hal
Ian
Jack
Kai
Leo
Max
Nate
Oli
Atrium
Bath
Corridor
DiningRoom
Apple
Banana
EDIT:
there might be a nice approach with subList or PartionList
my approach would be to create a new tree - and define a path for each element of the list.
at first I thought about creating a simple tree, one branch per combination - i left this approach at the lower part (violet).
but it is much simpler to create a complex tree, where the first index of the path represents the room and the second the fruit.
This approach is also similar to @inno s approach below - any reason why you (@inno ) use Tree statistics and replace paths - instead of create tree ?
at the beginning we have human readable info - I choose Persons, Rooms, Fruits.
For creating a path I convert Rooms and Fruits to an Index and then to an combined index that holds both infos.
this allows to create the pathes for each element.