Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building Power Apps
Suggested answer

Cascading Gallery

(1) ShareShare
ReportReport
Posted on by 86
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 
 
 
  • Nandit Profile Picture
    1,563 Super User 2025 Season 1 on at
    Cascading Gallery
     
    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!
     
  • Suggested answer
    Nandit Profile Picture
    1,563 Super User 2025 Season 1 on at
    Cascading Gallery
     
    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!
     

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,631 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,991 Most Valuable Professional

Leaderboard