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 / Help Expanding and Col...
Power Apps
Answered

Help Expanding and Collapsing Grouped, Nested Gallery

(0) ShareShare
ReportReport
Posted on by 29

Howdy,

 

I've watched/read many topics on this but still can't get it working.  I'd like to expand and collapse my grouped nested galleries. Ideally the parent gallery header button is the toggle and each group and be simultaneously toggled. 

 

Testing Information:

 

Parent -

Name: galEmployeeDepartment

Items: GroupBy(Employees, "Time_x0020_Tracking_x0020_Group","DATA")

Button: GroupName

 

Nested Child -

Name: galEmployee

Items: ThisItem.Data

Label: Employee Name

Height: CountRows(galEmployee.AllItems) * 50

 

Thanks for taking a look!

 

 

 

Categories:
  • Verified answer
    v-hanytian-msft Profile Picture
    Microsoft Employee on at

    Hi @Menyon ,

     

    May I ask what does each group and be simultaneously toggled mean?

    Is it means just show one group when you click the Button which name is Group Name?

     

    We made a sample for you and assume the data source is Excel online.

    Data Source:

    vhanytianmsft_0-1691982758052.png

     

     

    Canvas App:

    Gallery1:

    vhanytianmsft_1-1691982758056.png

     

     

    Button:

    Text:

    vhanytianmsft_2-1691982758069.png

     

    OnSelect:

    ClearCollect(Col,ThisItem.Data)

    vhanytianmsft_3-1691982758077.png

     

     

    Nested Gallery(Gallery2):

    Items:

    If(First(Col).Value=ThisItem.Data,ThisItem.DATA,Table(First(ThisItem.DATA)))

    vhanytianmsft_4-1691982758085.png

     

     

    Hope this will help you,

     

    Best Regards,

    Tina

  • Menyon Profile Picture
    29 on at

    Thanks for your help on this!

     

    The formulas above will only expand/collapse one individual group at a time. I'd like to have each group be able to expand/collapse. So, say expand/collapse group 1,3,8. Sorry if the original question is confusing.

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 345 Super User 2026 Season 2

#2
M Bilal Khan Profile Picture

M Bilal Khan 312

#3
Mohsin Ali Profile Picture

Mohsin Ali 252

Last 30 days Overall leaderboard