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 / Help with filtering a ...
Power Apps
Unanswered

Help with filtering a gallery based on checkboxes

(0) ShareShare
ReportReport
Posted on by 7

Happy Holidays everyone!

 

I'm a bit stumped on how to use 2 checkboxes as filters on a gallery connected to a sharepoint list. Each item of the list has a "complete" yes/no column. Each item also has a "Requester" column that is filled with the User().FullName function when the item is created in powerapps. 

 

So the 2 checkboxes I have on screen are:

 

"Show only requests submitted by me."

and

"Hide completed requests."

 

The function I have written for this is in the items property of the gallery is:

 

 

Filter(MaintenanceRequests,
 RequestLocation = LocationDropDown.Selected.Value,
 If(MyRequestsCheckbox.Value = true, 
 User().FullName = Requester,
 If(CompletedRequestsCheckbox.Value = true,
 Complete = false, 
 RequestLocation = LocationDropDown.Selected.Value
 )))

 

 

So the issue here is that when you have the "MyRequestsCheckBox" set to true, it wont pass through to the "CompletedRequestsCheckBox" filter and will only filter out complete requests when "MyRequestsCheckBox" is false. I'm sure the solution is simple, but how can I have it apply both filters to the gallery items at the same time if they are both checked?

 

Thanks!

 

Categories:
I have the same question (0)
  • Al_10 Profile Picture
    1,691 Super User 2024 Season 1 on at

    @DMCornelius 

     

    With({wUserName: User().FullName},
     Filter(MaintenanceRequests,
     RequestLocation = LocationDropDown.Selected.Value &&
     If(MyRequestsCheckbox.Value, Requester = wUserName) &&
     If(CompletedRequestsCheckbox.Value, Complete = false)
     )
    )

     

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

#2
11manish Profile Picture

11manish 141 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 109 Super User 2026 Season 2

Last 30 days Overall leaderboard