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 Apps
Suggested Answer

Cascading Gallery

(1) ShareShare
ReportReport
Posted on by 90
hi Experts
I am trying to cascade the gallery . I want the pposition of sub menu to allign to the selected mAin gallery item. 
 
can you help. Its not a component 
 
 
 
like 
 
 
Categories:
I have the same question (0)
  • Suggested answer
    Nandit Profile Picture
    1,568 Moderator on at
     
    Yes that can be done. Let me show you how. I have created a collection in the app which looks like this:
     
    I have added a gallery on the screen with following code in the Items property:
    Distinct(colItems, MainItem) //replace colItems with your Data
    I have added a Sub Gallery with the following code in the Items:
    Filter(colItems, MainItem = Gallery1.Selected.Value)
    This is how it works:
    Main Item 1 selected:
    Main Item 2 Selected:
     
    Hope this is what you're after.
     
    Kind regards, 
    Nandit
     
    If this answers your query, please mark this response as the answer.
    If its helpful, please leave a like. Thanks!
     
  • Nandit Profile Picture
    1,568 Moderator on at
     
    I apologise for not reading the entire post. To align your Sub Gallery to the selected Item in the Main Gallery, you can use the following code in the Y property of the Sub Gallery:
    I have added Row Number to my collection just to know the index of the selected item, you can use ID if your items are in the correct order in a list or table.
    Gallery5.Y + If(
        LookUp(
            colItems,
            MainItem = Gallery5.Selected.Value
        ).RowNumber = 1, //Replace with ID if you have a SPList
        0,
        LookUp(
            colItems,
            MainItem = Gallery5.Selected.Value
        ).RowNumber * 35 //find the value that works best for you
    )
    This is how it looks:
    When Item 3 is selected:
     
    Hope this helps. 
     
    Kind regards, 
    Nandit
     
    If this answers your query, please mark this response as the answer.
    If its helpful, please leave a like. Thanks!
     

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

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 366 Most Valuable Professional

#2
11manish Profile Picture

11manish 184

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 99 Super User 2026 Season 1

Last 30 days Overall leaderboard