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 (...
Power Apps
Unanswered

Filter gallery items (from a SharePoint list) with a multi-select checkbox

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi everyone,

I have a gallery from a SharePoint list called "All OKRs" and all I'm trying to do is filter the gallery by using  the checkboxes below (user can select either one box or multiple boxes). Basically, if a user selects CompanyCheckbox the gallery should filter the "ALL OKRs" list where  OKR Type is Company. If user selects CompanyCheckbox and ECMChecbox it should filter by both selections etc. ("OKR type" is a drop-down option In "All OKRs list" that is not multi-select). My function is not working and I am new to PowerApps and have been struggling with this issue for a long time. Any help would be appreciated.

 

If(CompanyCheckbox.Value=true && ECMPracticeCheckbox.Value=false, Filter('All OKRs', 'OKR Type'= "Company"))checkboxcheckbox

Categories:
I have the same question (0)
  • WarrenBelz Profile Picture
    156,100 Most Valuable Professional on at

    Hi @Anonymous ,

    You are selecting items in a gallery - I will call it DiscoverOKRs (change this to your gallery name)

    If(
     DiscoverOKRs.Selected.CompanyCheckbox.Value=true && 
     DiscoverOKRs.Selected.ECMPracticeCheckbox.Value=false, 
     Filter(
     'All OKRs', 
     'OKR Type'= "Company"
     )
    )

     

    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.

  • WarrenBelz Profile Picture
    156,100 Most Valuable Professional on at

    Hi @Anonymous ,

    Answer below is for one selected item - I see you can select many.

    What is the Items property of the gallery?

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Thank you for your response @WarrenBelz . I tried the function and it didn't work. Is it because I have to apply the function to all  the checkboxes? 

    The Items property on the gallery is "All OKRs" which is the SharePoint list the data is coming from

  • WarrenBelz Profile Picture
    156,100 Most Valuable Professional on at

    OK Thanks @Anonymous ,

    Is the checkbox liked to a field in 'All OKRs' or is it unbound. Also what is its name?

  • v-siky-msft Profile Picture
    Microsoft Employee on at

    Hi @Anonymous 

     

    You have to apply the Filter function to Gallery Items property. Since "OKR type" is Choices type column, we need to use 'OKR Type'.Value code to reference that field.

    Please modify the Items property as below:

     

    If(CompanyCheckbox.Value=true && ECMPracticeCheckbox.Value=false, Filter('All OKRs', 'OKR Type'.Value= "Company"))

     

    Sik

     

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    @WarrenBelz  the checkboxes are supposed to be linked to two columns in All OKRs list. 

     

    1.Column Name= "OKR Type" (Company, Practice Type, Individual)

    2.Column Name= "Practice Type" (ECM, …)

     

    if company checkbox Is selected, the All OKRs list should be filtered by OKR Type= Company 

    if ECM checkbox is selected, All OKRs list should be filtered by "OKR Type"=Practice AND "Practice Type"=ECM

    if Individual checkbox is selected, All OKRs list should be filtered by "OKR Type=Individual"

    if ALL checkbox is selected, it should display everything

     

    if more than one checkbox is selected, the gallery should be filtered accordingly (if this is too complicated, it can be single select instead of multi-select) 

    Untitled.png
  • WarrenBelz Profile Picture
    156,100 Most Valuable Professional on at

    Hi @Anonymous ,

    Try the below

    If(
     AllCheckbox.Value=true,
     'All OKRs', 
     CompanyCheckbox.Value=true,
     Filter(
     'All OKRs', 
     'OKR Type'.Value= "Company"
     ),
     ECMheckbox.Value=true,
     Filter(
     'All OKRs', 
     'OKR Type'.Value="Practice" &&
     'Practice Type'.Value="ECM"
     ),
     IndividualCheckbox.Value=true,
     Filter(
     'All OKRs', 
     'OKR Type'.Value="Individual"
     )
    )

     

    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.

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 June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 335 Most Valuable Professional

#2
11manish Profile Picture

11manish 165

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 96 Super User 2026 Season 1

Last 30 days Overall leaderboard