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 / Dynamically populating...
Power Apps
Unanswered

Dynamically populating a nested gallery inside a nested gallery

(0) ShareShare
ReportReport
Posted on by 44

I've run into a stone wall on this one. Maybe someone can help me or give me some ideas. All my ideas lead to dead ends.

 

The scenario:

We need to dynamically populate pay types and load in payment amounts for those pay types by invoice.

 

Current semi-successful implementation:

I'm using a flow to run a SQL query to get the invoices and the invoice totals placed into a vertical gallery. Since the pay types have to be dynamic, I have nested a horizontal gallery with all the active pay types inside that original gallery. This does work; however, because of the # of pay types and number of rows of invoices, the loading of the payment amounts into the app is extremely slow (think of the speed of doing 260 x 15 lookups minimum). 

 

My idea where I have reached said dead end:

Place the horizontal gallery inside of another vertical gallery where the new vertical gallery is a pivot table of the pay types by invoice (vertical gallery with rollup data -> vertical gallery a pivot table with all active pay type data by invoice -> current active pay types). This is not a solution though because you cannot dynamically specify column selection in PowerApps. For this to work, I need to be able to do something like Parent.ColumnNameFromInsideGallery which is not possible. I am unsure if maybe this is now possible in the new advanced code editing feature, but I haven't taken a look at that yet and would have to get familiar with YAML. Or perhaps if I was to build a custom component that could do this somehow with JavaScript or some other code?

Categories:

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 382 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 329

#3
WarrenBelz Profile Picture

WarrenBelz 187 Most Valuable Professional

Last 30 days Overall leaderboard