Hi,
I am not sure if this is possible in Alteryx, but I have a set of data that I am trying to get into a specific format and I can't figure out how to do it.
The data is a list of hierarchies from a system that are in a list of rows. I have already cleaned up the data so that the parent in the hierarchy appears in the left-most column and the children appear on the right. Each child is one row below and to the right of the parent. This continues for 6 further levels. Here is an example of what it looks like:

What I would like to do, is turn this into a lookup table so that the relevant parent is repeated on each row until you get to the next parent in the file, and the children move up a row to sit alongside them. Here is an example that I have done manually of what I would like to achieve:

The idea is that you could search for any of the children in the table and then just look to the left to see all of the parents it sits under in the hierarchy, rather than navigating up and left to find it right at the top.
I am not sure if this is possible in Alteryx as even doing it manually is quite tricky, but I thought I would ask.
Please let me know if you need any further information.
Thank you.