web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Gallery - Show only it...
Power Apps
Unanswered

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:
I have the same question (0)
  • Verified answer
    sperry1625 Profile Picture
    763 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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 796 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard