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 / Gallery - Show only it...
Power Apps
Answered

Gallery - Show only items that find match in a collection

(0) ShareShare
ReportReport
Posted on by

Hi, here is my scenario:

 

I have:

- Collection 1, with A, B, C, (...), Z (let's say all the letters are there),

- Collection 2, with only "S", "C", and "G" letters in (3 entries)

- Gallery 1 using collection 1

 

I would like the Gallery 1 to show only these items from the Collection 1 with at least 1 match in the Collection 2 (so in our example, the Collection 1 should only show letters "S", "C", and "G").

 

I can't switch it for collection 2. Would you have any advice how to filter it in a right way?

Thank you

Categories:
  • Verified answer
    sperry1625 Profile Picture
    765 Super User 2024 Season 1 on at

    You should be able to Filter Collection 1 using Collection 2, something like this.

     

    Filter(
     colOne,
     Name in colTwo.Name
    )

     

    Use this formula in your Items property for your Gallery.

     

    This assumes a colOne structure with a Property of Name.

     

     

    Regards,

    -S

    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.

  • Akser Profile Picture
    1,546 Moderator on at

    I assume the gallery's item property should look like: 

     

    Filter(Collection1, Collection1[@LetterColumnName] in Collection2[@LetterColumnName]) 

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
11manish Profile Picture

11manish 409 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 328

#3
WarrenBelz Profile Picture

WarrenBelz 252 Most Valuable Professional

Last 30 days Overall leaderboard