Hi,
I have a table representing a hierarchical reporting structure, and I need to reverse the order of the levels for each row. For example, a row like this:
Apple -> Orange -> Pear -> Plum
Should be transformed into:
Plum -> Pear -> Orange -> Apple
The table has multiple rows, with varying lengths of hierarchy (some levels are Null). Here's an example of my input and desired output:

What’s the best way to achieve this in Alteryx? I’m looking for a scalable solution since the number of levels may vary.
Thanks in advance!