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 a gallery with ...
Power Apps
Answered

Filter a gallery with multiple checkboxes

(0) ShareShare
ReportReport
Posted on by 101

Hello,

I have a gallery and one of the columns is "Category". In this case, I have 5: A, B, C, D, E.

I have a filter pane on the left side of my gallery with a checkobx for each, labeled filtA, filtB, etc. 

I need to enter a function into the Items property of my gallery that filters my gallery depending on the values selected. I tried to do this the loooooooooong way, but it is driving me nuts, where I would have to write a function like

If(filtA.Value = true, Filter(Table1, Category = "A"))

I would have to do this ^ for EVERY combination of 1, 2, 3, or 4 boxes being selected and not selected.

There has to be a better way right?

Categories:
I have the same question (0)
  • Verified answer
    Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    @water-guy-5 

    Set the OnCheck property of each checkbox Collect(coll, "A:), Collect(Coll, "B"), etc until all the boxes are assigned.

    Set the UnCheck property of each checkbox Remove(coll, "A"), Remove(Coll, "B"), etc

    Set the Defaults to false

    Set the Items property of your gallery to: Filter(Table1, Category in coll.Value)

    If Category is a Choice type column:  Filter(Table1, Category.Value in coll.Value)

     

  • water-guy-5 Profile Picture
    101 on at

    Oh my goodness thank you so much

  • water-guy-5 Profile Picture
    101 on at

    @Drrickryp how would this look with multiple filters? 

    Lets say I also have a Status column. Can I create coll2 and apply the same logic? How would this look in my Items function?

  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    @water-guy-5 

    Status is single or multiselect? Choice or single line of text?

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
WarrenBelz Profile Picture

WarrenBelz 355 Most Valuable Professional

#2
11manish Profile Picture

11manish 209 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 150 Super User 2026 Season 2

Last 30 days Overall leaderboard