Forum Discussion

EdgarEngieImpact's avatar
EdgarEngieImpact
Copper Contributor
Mar 01, 2022
Solved

Rearranging columns with hierarchy

Hello, I need to re-arrange two columns into three depending on hierarchy and I am not sure how to approach it.  I have three levels in the hierarchy: A - Grand parent B - Parent C - Child   T...
  • Riny_van_Eekelen's avatar
    Riny_van_Eekelen
    Mar 02, 2022

    EdgarEngieImpact Have a look at the attached file. It contains a Power Query solution that uses a wonderful script that I picked-up from the Thebiccountant.com (link is in the file). I tweaked it a bit so that it matches the outcome you desire, taking no credit for it.

    It's actually meant to explode a Bill of Materials with quantities into a list of all the individual items used. But it works the same for your list of campaigns. Kindly refer to the link in the file to learn more about the techniques used.

     

     

Resources