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 / Nested gallery issue
Power Apps
Answered

Nested gallery issue

(0) ShareShare
ReportReport
Posted on by 183
I've been going round and round in circles trying to sort this out...
 
I am attaching a screenshot of what I'm working on. My data sources are Sharepoint lists, namely Support Sessions list and Attendees list.  I am endeavouring to create a report showing the details of each session and the attendees.  I have an outer gallery that shows the Support Session details on the left and then a nested gallery showing the Attendees at each session. I am struggling to get the spacing right. I need the amount of space to adapt depending on how many attendees there are at each session. Is this something that should be achievable? I have scribbled/rubbed out the Support Session and Peer Supporter information for privacy reasons. The parents names are all fictional, so they remain! Any help will be hugely appreciated.  
Screenshot.jpeg
I have the same question (0)
  • Verified answer
    WarrenBelz Profile Picture
    155,242 Most Valuable Professional on at
    The outer gallery needs to be a Flexible Height control and the nested item a standard Vertical gallery. You can the make the Height of the nested item based on the number of rows present. Something like this generally works for me
    (Self.AllItemsCount * (Self.TemplateHeight + Self.TemplatePadding)) + Self.TemplatePadding
    You can also set maximum and minumum heights by wrapping like this Max(Min(CodeAbove,YourMin),YourMax)
     
    Please  Does this answer your question if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider answering Yes to Was this reply helpful? or give it a Like 
    Visit my blog 
    Practical Power Apps    LinkedIn  
  • Verified answer
    Vish WR Profile Picture
    2,253 on at
    Try this and see if it works

    1.    Outer Gallery → Set Height mode to Flexible
    2.    Outer Gallery TemplateHeight → Set to a formula that sums your fixed content height + the nested gallery height
    3.    Nested Gallery → Keep as standard Vertical Gallery
    4.    Nested Gallery Height →
    Max(1, Self.AllItemsCount) * (Self.TemplateHeight + Self.TemplatePadding) + Self.TemplatePadding
    5.    Nested Gallery Items → Filter by the current outer gallery row:
    Filter(Attendees, SupportSessionID = ThisItem.ID)

     
    Please  Does this answer your question if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider answering Yes to Was this reply helpful? or give it a Like 
    Visit my blog My Tech Space    LinkedIn  
  • CD-28031715-0 Profile Picture
    183 on at

    Thanks both for the suggestions — really appreciated.

    Switching the outer gallery to a flexible height one made a big difference. I kept the inner gallery standard and then controlled the row height using a simple calculation based on the number of attendees, which finally stopped the overlap and spacing issues.

    It took a bit of trial and error with container heights, but the key was not overcomplicating it and just making the outer container respond directly to the attendee count.

    All working nicely now — thanks again for pointing me in the right direction!

    ScreenshotNew.jpeg

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 March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 914

#2
11manish Profile Picture

11manish 627

#3
Valantis Profile Picture

Valantis 598

Last 30 days Overall leaderboard