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 / Gallery Multi filer issue
Power Apps
Answered

Gallery Multi filer issue

(0) ShareShare
ReportReport
Posted on by 413

Hi there, 

 

I'm following the videos published by @RezaDorrani about filtering items in a gallery.

I'm having some trouble with filtering items from a checkbox. 

 

As you can see I successfull filter my items with a Combobox, selecting my choices from a sharepoint list column values.

Calcioscacchi_0-1677665801912.png

Calcioscacchi_1-1677666089245.png

 

 

But if I check the checkBox values, the Combobox value is correctly updated but the filter doesn't works.

 

Calcioscacchi_2-1677666185213.png

 

Here's the Items property code of my gallery:

 

SortByColumns(
 Filter(
 'TEST-GESTIONE CAMPIONI';
 StartsWith(
 Petitioner;
 PetitionerFilter.Text
 ) && ( 'Analysis status' in ComboBox1.SelectedItems || ComboBox1.Selected.Value=Blank())
 );
 "field_7";
 Descending
)

 

 And the properties of my ComboBox:

Calcioscacchi_3-1677666483396.png

 

 

Do you have some hints?

Thanks.

 

 

 

Categories:
I have the same question (0)
  • Verified answer
    v-jefferni Profile Picture
    Microsoft Employee on at

    Hi @Calcioscacchi ,

     

    What's the relationship between Check box and Combo box? Why do you use the Check box to select Combo box then filter Gallery?

     

    Please try below if Combo box allows single selection:

    SortByColumns(
     Filter(
     'TEST-GESTIONE CAMPIONI';
     StartsWith(
     Petitioner;
     PetitionerFilter.Text
     ) && ( 'Analysis status'.Value = ComboBox1.Selected.Value || IsBlank(ComboBox1.Selected))
     );//replace ComboBox1.Selected with colAnalysisStatusFilter if using CheckBox to filter
     "field_7";
     Descending
    )

     

    If you need the Combo box allow multiple selections:

    SortByColumns(
     Filter(
     'TEST-GESTIONE CAMPIONI';
     StartsWith(
     Petitioner;
     PetitionerFilter.Text
     ) && ( 'Analysis status'.Value in ComboBox1.SelectedItems.Value || IsBlank(ComboBox1.Selected))
     );//replace ComboBox1.Selected with colAnalysisStatusFilter if using CheckBox to filter
     "field_7";
     Descending
    )

     

    Best regards,

  • Calcioscacchi Profile Picture
    413 on at

    The relationship between the Combobox and the gallery containing my checkboxs is the Combobox DefaultSelectedItems property, setted with 

     

     

    colAnalysisStatusFilter.Value

     

     

     

    This collection is populated with the Oncheck/OnUncheck properties of each combobox:

    Oncheck: Collect(colAnalysisStatusFilter;ThisItem)

    OnUncheck: Remove(colAnalysisStatusFilter;ThisItem)

     

     

    Your code works quite fine but if in the Gallery I have not the element i'm looking for, nothing happens. I desire to have no items at all:

     

    Calcioscacchi_0-1677761390901.png

     

    EDIT: my problem was a reset button. I must insert 

    RemoveIf(colAnalysisStatusFilter;true)

    in my reset button in order to clear the collection.

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

#2
11manish Profile Picture

11manish 165

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 88 Super User 2026 Season 1

Last 30 days Overall leaderboard