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 based o...
Power Apps
Answered

Filter gallery based on dropdown [afresh]

(0) ShareShare
ReportReport
Posted on by 361

need to filter the gallery based on these choice boxes, but I don't know how I can do it.

 

in my scenario I have a gallery (APS Request) that show this data, the "Site" column needs to be filtered in the choices box, however, the site column in sharepoint is of the CHOICES style.

 

Joaoandrebs_0-1678579678047.png

 

Another thing I need to filter is the Status column, which is also a choice column (I don't know why, I didn't create the app).

Joaoandrebs_1-1678579678350.png

 

Joaoandrebs_2-1678579678351.png

 

 

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

    @Joaoandrebs

    Combobox's or dropdown? If comboboxes, single or multiselect?

    Name of list, 'APS Request'? Allow blanks in choices? 

  • Joaoandrebs Profile Picture
    361 on at

    @Drrickryp 

     

    Combobox - single select 

     

    Yes, my list is APS Request  - yes

     

    like this image: 

     

    Joaoandrebs_0-1678627744215.png

     

  • Joaoandrebs Profile Picture
    361 on at

    @Drrickryp 

    I tried this, but 

    I want it to receive more than one filter, which doesn't filter just by the "site" column, understand?

    And if possible without that dataset refusal warning...

     

    Joaoandrebs_0-1678634300349.png

     

  • Verified answer
    Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    @Joaoandrebs 

    I am assuming that the information applies to all of your combobox controls.  ie. single selection, allows blank.  You do not need the "in" operator for single selection comboboxes.  Besides, this operator is not delegable in SharePoint and will always give a warning. 

     

    Filter(
     'APS Request', Len(ComboBox1.Selected.Site)=0 ||
     Site.Value = ComboBox1.Selected.Value, 
     Len(ComboBox2.Selected.Value)=0 ||
     Status.Value = ComboBox2.Selected.Value
     Len(ComboBox3.Selected.Value)=0 ||
     someotherchoicecolumn.Value=ComboBox3.Selected.Value
    )

     

     

     

  • Joaoandrebs Profile Picture
    361 on at

    @Drrickryp , 

     

    the filter worked.

    however, would it be possible to filter through the two comboboxes?

    example: filter by selection value of the 2 simultaneous comboboxes? so it will be grade 10.

     

    Joaoandrebs_0-1678642964608.png

     

  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    @Joaoandrebs 

    The above filter should work if both comboboxes have choices, if either one has a choice and if both are blank, all the records should show.  Please post the text of the current items of your gallery.

  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    @Joaoandrebs 

    There was a typo in my formula and if you are using only two comboboxes for Choice type fields that are single select type then this should work.:

     

    Filter(
     'APS Request', Len(ComboBox1.Selected.Value)=0 ||
     Site.Value = ComboBox1.Selected.Value, 
     Len(ComboBox2.Selected.Value)=0 ||
     Status.Value = ComboBox2.Selected.Value
     
    )

     

  • Joaoandrebs Profile Picture
    361 on at

    @Drrickryp 

     

    Oh right, hadn't realized this.

    now, last thing (promise)

    I put this formula to the dropdown because it makes more sense... but I want to leave an option to "reset" the selected items, for example: a button that "erases" the choices "Requested" and "SJC"

     

    Joaoandrebs_0-1678648216752.png

     

  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    @Joaoandrebs

    IF you are using dropdown controls, make sure to set the default property to Blank() and the button OnSelect to

    Reset(Dropdown1);; Reset(Dropdown2) 

  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    @Joaoandrebs 

    If it answered your question, please mark it as solved.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 490

#2
WarrenBelz Profile Picture

WarrenBelz 427 Most Valuable Professional

#3
Vish WR Profile Picture

Vish WR 381

Last 30 days Overall leaderboard