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 gallery items b...
Power Apps
Answered

Filter gallery items by checkbox or toggle where person column IsBlank

(0) ShareShare
ReportReport
Posted on by 45

I would like to filter a gallery using a toggle or check box to only show list items where a person column IsBlank.

 

I have never used toggles or check boxes before, just so you know where I'm coming from

 

Any suggestions?

 

Andy

Categories:
  • dinusc Profile Picture
    Microsoft Employee on at

    Hello andyJDL,

     

    You can find how to filter gallery content here: https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/show-images-text-gallery-sort-filter

    You can also use a toggle control to enable/disable filters. You can achieve this by adding an "IF" statement to the filter as shown here: https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/show-images-text-gallery-sort-filter )

     

  • andyJDL Profile Picture
    45 on at

    Thanks but I need more info than that.

    I'm wondering if Toggle filters don't work on Person/Group columns?

     

    Andy

     

  • Verified answer
    dinusc Profile Picture
    Microsoft Employee on at

    Will the Person in the gallery be bound to some Person's data? If so then let's assume that the gallery cell contains person't name (for example, Label1.Text = ThisItem.Person.Name). In this case your filter formula would look like this:
    Gallery1.Items = Filter(Gallery_Source_Name, If(Toggle1.Value = true, IsBlank(Person.Name), !IsBlank(Person.Name)))

    where Gallery_Source_Name is your data source that should be bound to the Gallery.

     

  • andyJDL Profile Picture
    45 on at

    Awesome!  Thanks.

     

    Andy

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 248 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 192 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 135

Last 30 days Overall leaderboard