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 / Filtering a Gallery Ba...
Power Apps
Answered

Filtering a Gallery Based on Another Gallery

(0) ShareShare
ReportReport
Posted on by 22
Hi there, 
 
I'm a beginner at PowerApps so please bear with me. 
 
I have 2 galleries - CategoryGallery and EquipmentGallery. 
 
In my CategoryGallery items I have:
 
Distinct('EMF Equipment Log',Category.Value)
 
I want my EquipmentGallery to filter based off of what is selected in the CategoryGallery.
 
In the items field on Equipment Gallery I put:
 
Filter('EMF Equipment Log',Category = CategoryGallery.Selected.Category)
 
However this in an error. The Category field is a choice column in SharePoint. 
 
Categories:
I have the same question (0)
  • ewk431 Profile Picture
    22 on at
    Meant to add, any help would be much appreciated. 
     
    Many thanks!
     
  • Verified answer
    Nirav Raval (Akira28) Profile Picture
    153 Moderator on at
    Hi  ,

    Try the below process and method might help -

    1) CategoryGallery apply the below code ( I think which is already there)
       Distinct('EMF Equipment Log', Category.Value)

    2) EquipmentGallery  update with this one.  - ( It will filter equipment based on selected category)
        Filter('EMF Equipment Log', Category.Value = CategoryGallery.Selected.Value)


    If this post solved your issue, clicking 'Does this answer your question' will help others discover the solution and close the topic. If you found it helpful, a Like would be awesome!


    Regards,
    Nirav J Raval (Akira28)
  • ewk431 Profile Picture
    22 on at
    That works, thanks so much @Akira28! 

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 739 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard