web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Create Hierarchical or...
Power Apps
Unanswered

Create Hierarchical organization chart

(0) ShareShare
ReportReport
Posted on by 7

Hi All, 

 

I'd like to create a hierarchical expandable organization chart by using excel file like below.

adelev125_0-1638237952976.png

 

What I want to create is like below organization chart.

adelev125_1-1638238221818.png

 

 

Categories:
I have the same question (0)
  • rubin_boer Profile Picture
    4,843 Super User 2024 Season 1 on at

    hi @adelev125 

     

    Please have a look at the following for some direction (the sort answer is use a Power BI tile :)) but we don't all have the luxury right.

     

    Your dataset actually allow you to get away with a gallery.

     

    I will add a column to your data to check whether the line item is a parent (does it have any children attached to it)

     

    //creating all the parentid in one string
    UpdateContext(
     {
     ChildStructure: Concat(
     cHierarc,
     OrgParentID,
     ","
     )
     }
    );
    //return a boolen if the item does have a child
    ClearCollect(
     cHierarc2,
     AddColumns(
     cHierarc,
     "HaveChild",
     OrgID in ChildStructure
     )
    )

     

    The result is something like this (we will use this to hide/show the icon to expand) :

    rubin_boer_0-1638552797771.png

    Now for the final product, this is possible because you have the sort order and level

    Add a gallery and set its datasourcce to the collection above, the one that checks for children

    Add a icon (>) and set its visible = ThisItem.HaveChild

    Set the icon X = ThisItem.Level * 25

    Add a label and set its Text = Thisitem.YourOgName

    Set the label X = icon.X + 30

    This is the result:

    rubin_boer_1-1638553403892.png

     

    Hope this helps,

    R

     

     

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 1,033

#2
Valantis Profile Picture

Valantis 632

#3
11manish Profile Picture

11manish 607

Last 30 days Overall leaderboard