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 / How can achieve nested...
Power Apps
Answered

How can achieve nested gallery show and hide

(0) ShareShare
ReportReport
Posted on by 55

Hi All,

I have nested gallery, where Gallery 1 is parent and Gallery 2 is child. When i click on parent first label it should display child item of first label only.

Can anyone help me to fix this problem.

 

Thank You in advance!

Screenshot (33).png
Categories:
I have the same question (0)
  • WarrenBelz Profile Picture
    155,471 Most Valuable Professional on at

    Hi @jeniviya ,

    What are the Items of your parent and child galleries?

  • jeniviya Profile Picture
    55 on at

    Parent Gallery has Group Name(Label/Barcode, Safety) as a item and child Gallery has Question (barcode details misprint etc)

  • WarrenBelz Profile Picture
    155,471 Most Valuable Professional on at

    HI @jeniviya ,

    I need the Items property - select the gallery then in the top-left drop-down, select Items and the value will be in the box to the right of this.

  • jeniviya Profile Picture
    55 on at

    Item of Gallery 1 (Parent) : Distinct('QC Check Lists','Check List Group'.'Check List Group Name')

    Item of Gallery 2(child): Filter('QC Check Lists','Check List Group'.'Check List Group Name'=Title1.Text)

  • WarrenBelz Profile Picture
    155,471 Most Valuable Professional on at

    Hi @jeniviya ,

    I assume a CDS/SQL backend here with the structure. Try on Gallery2 Items

    Filter(
     'QC Check Lists',
     'Check List Group'.'Check List Group Name'= Gallery1.Selected.Result
    )

    I am assuming Gallery1 is the name of the first gallery, if not, change the above to the name.

     

    Please click Accept as solution 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 giving it Thumbs Up.

     

  • jeniviya Profile Picture
    55 on at

    It's not working, It's showing errors.

  • jeniviya Profile Picture
    55 on at

    When i click on '+' icon in need to show the sub gallery items. 

    Screenshot (35)_LI.jpg
  • WarrenBelz Profile Picture
    155,471 Most Valuable Professional on at

    @jeniviya 

    What is the code on your + sign?

    Also what type of data backend are you using?

  • jeniviya Profile Picture
    55 on at

    UpdateContext({show:!show}) : I have used this formula on icon,

    I'm using data source tables

  • v-yutliu-msft Profile Picture
    Microsoft Employee on at

    Hi @jeniviya ,

    Do you want the nested gallery will only related items based on the item value in gallery1?

    If so, I think you should Ungroup the table firstly. Or else, the gallery2 could only filter correctly.

    I've made a similar test for your reference:

    1)gallery1's Items:

    Distinct(Ungroup(test4,"test"),field2)

    2)gallery2's Items:

    Filter(Ungroup(test4,"test"),field2=Subtitle2.Text)

     Then gallery2 will only display the related items of the outside item.

    (test4's stucture:

    ClearCollect(test1,{field1:"a",field2:"aa",field3:"111"},{field1:"b",field2:"bb",field3:"222"},{field1:"c",field2:"cc",field3:"333"},{field1:"a",field2:"bb",field3:"111"});ClearCollect(test4,GroupBy(test1,"field1","test"))

    )

    552.PNG

     

     

    On your side, you should try:
    gallery1's Items:

    Distinct(Ungroup('QC Check Lists',"'Check List Group'"),'Check List Group Name')
    

     gallery2's Items:

    Filter(Ungroup('QC Check Lists',"'Check List Group'"),'Check List Group Name'=Title1.Text)

     

    If my understanding is incorrect, please describe more clearly about the feather that you want and show me the structure of your collection.

     

    Best regards,

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 428

#2
Haque Profile Picture

Haque 338

#3
timl Profile Picture

timl 333 Super User 2026 Season 1

Last 30 days Overall leaderboard