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 / Filtering a Nested Gal...
Power Apps
Answered

Filtering a Nested Gallery

(0) ShareShare
ReportReport
Posted on by 276

Hi,

I have a vertical gallery with a horizontal nested gallery inside (the Horizontal nested gallery is filled in pink in the picture below)

 

the Common ID is the BELREF.

 

I would like to filter the gallery by the 'Category' in the child's nested gallery.

 

I've spent a while and not come up with anything that works.

 

I have 2 collections - one called SupplierMaterials, which is a long list of materials, however i am only wanting to show the records from this list where the BELREF is found in a collection called ExtrasItems.

The Parent/Child relationship seems to work fine, but i cant filter it how i would like too.  - Is this even possible??

 

In the picture below and attached i have labelled what the items properties of the Galleries are set too and tried to show where the nested galleries fit.

 

The ideal scenario here is when "EXTERNAL" is Selected in the CategoryDD dropdown that i would only see the top 2 items.

 

Any ideas anyone?

 

TIA

 

d3ell_0-1683325331008.png

 

 

Parent - Child filter.png
Categories:
I have the same question (0)
  • Verified answer
    KennethNicasens Profile Picture
    on at

    Can you use the following fx in the Items property of the sub-gallery:

    Filter(SupplierMaterials,BELREF = Text(ThisItem.BELREF), CategoryDD.Selected.Text = CATEGORY)

     This will filter your gallery on belref as well as on category selected in the dropdown.
    Now you will still have some parent records without child records. This can be solved by adding a filter on the parent gallery item property:

    Filter(ExtrasItems As ParentTable, CountIf(SupplierMaterials,BELREF = Text(ParentTable.BELREF),CategoryDD.Selected.Text = Category)>0)

    Something Like this should work! (Maybe the names of the objects are not the same as yours)

  • d3ell Profile Picture
    276 on at

    Hi, That worked pretty much as a simple copy and paste exercise, Just my DD box needed to have .Value rather than .Text and it worked perfectly!!
    I'm new to working with Parent/Child relationships and its become a bit of a necessity so you help will go a long way very much appreciated.

    One thing i was hoping to get from the reply was that i would be able to understand whats happening, but i dont at the minute so going to try and learn whats going off there.

     

    Would you be able to help me with one other little thing? (sorry to be cheeky!)

    The ContractorDD i would ideally like its items property to be a DISTINCT version of all the Child Items in the gallery.  So in the previous example if that was all the items the only two items that would appear in the dropdown box would be "External" & "Lighting".  However if there was a child item with another category that would show up in there too?

    Thanks Again. 😀

  • d3ell Profile Picture
    276 on at

    Hi @KennethNicasens  would you be so kind as to have a look at my query regarding filtering the Dropbox by DISTINCT on all the child data. I have had lots of attempts and came up with nothing. 😖

     

    TIA

  • KennethNicasens Profile Picture
    on at

    HI!

    That will be dificcult because you are using the dropdown to filter as well.
    A solution to that would be to have the result of the sippliersmaterials collected in a collection and build your dropdown based on that collection.

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

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 379 Most Valuable Professional

#2
11manish Profile Picture

11manish 203 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 128 Super User 2026 Season 2

Last 30 days Overall leaderboard