Hi,
I am working on creating Parent-Child flow in Alteryx. In the Input, the "Quantity" can be under Child. But I need the "Quantity" to be under "Base child/First child(child without -)".
There are two special cases here,
1. There could be as many Children under each Parent
2. There could be no Base child/First child (child without -)
Please see example Input and Output images


Any help is appreciated!. Many Thanks!