Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Power Query
Answered

Transpose Hierarchy from one state to another

(0) ShareShare
ReportReport
Posted on by 12

Hello, I'm currently experiencing a problem with dataflows in power platform

I have an Excel file with a hierarchy in one line
eg:
ID lvl1 | Name lvl1 | ID lvl2 | Name lvl2 | ID lvl3 | Name lvl3

I'd like to transform this model into another structure using a dataflow.

 

The new structure is as follows:
ID | Name | ParentID

ParentID corresponds to the levels above that we saw in the first structure.

If you have any ideas, I'd love to hear from you. For the moment, the only solution I've found is this one:


- dupply each top level columns

- merge ID lvl | Name lvl | Parent lvl
- transpose columns
- split columns

 

But it's a lot of manual processing and the level structure can change over time (there may be new levels in the future) so my way of doing things requires modifications each time a new level is added.

 

Thank you 

  • Laveezai Profile Picture
    12 on at
    Re: Transpose Hierarchy from one state to another

    It works, thanks ! 😁

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Leaderboard > Power Apps - Power Query

#1
mmbr1606 Profile Picture

mmbr1606 9 Super User 2025 Season 1

#2
stampcoin Profile Picture

stampcoin 7

#3
SD-13050734-0 Profile Picture

SD-13050734-0 6

Overall leaderboard

Featured topics