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 / Filter second gallery ...
Power Apps
Answered

Filter second gallery based on multiple selections from first gallery

(0) ShareShare
ReportReport
Posted on by 294

Hi all!

What is the formula to filter a second gallery based on multiple selections in a first gallery? My first gallery (Gallery A) contains high level activities with checkboxes, and the second gallery (Gallery B) contains their details.

For UX purposes, I've put each gallery on a different screen and would like the user to select all the top level activities from Gallery A, and when moved to the next screen, would have the details filtered for them in Gallery B. Can this be done?

I'm using CDS and a canvas app.

Categories:
I have the same question (0)
  • Verified answer
    v-xida-msft Profile Picture
    Microsoft Employee on at

    Hi @karimabdelrazek ,

    Could you please share a bit more about the data structure of your data source?

    How do you bind the Gallery A and Gallery B? Through a Primary Key, e.g. "ActivityId"?

    Further, does the Gallery A and Gallery B connect to same data source?

     

    I assume that you bind the Gallery A and Gallery B through a Primary Key column -- ActivityId. Please consider set the Items property of the second Gallery to following:

     

    Filter(
     Activities,
     ActivityId in Filter( // filter these items whose checkbox is checked
     GalleryA.AllItems,
     Checkbox1.Value = true
     ).ActivityId
    )

     

    Note: The ActivityId represents the Primary Key column in your CDS Entity, on your side, you should replace it with 'Unique Identifier' Type column.

     

    Regards,

  • karimabdelrazek Profile Picture
    294 on at

    Hi @v-xida-msft ,

    Thanks for the reply. I bind the two galleries though an "ActivityID" like you mentioned, but the data are in two separate entities. I will try your solution below.

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!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 545 Most Valuable Professional

#2
Haque Profile Picture

Haque 314

#3
Kalathiya Profile Picture

Kalathiya 234 Super User 2026 Season 1

Last 30 days Overall leaderboard