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

Gallery filter based on dropdown

(0) ShareShare
ReportReport
Posted on by 361

I 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-1678450421975.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-1678450613229.png

Joaoandrebs_2-1678450632620.png

 

Categories:
  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hello @Joaoandrebs ,
    Use Choices([SPList_Name].[ColumnName]) as your combo-boxes source.
    Then in the source of the gallery,
    lets suppose you have combobox1 for column Col1 and combobox2 for column Col2 And our datasource called "DS",

    filter(DS,

    (IsEmpty(combobox1) Or Col1 in combobox1.SelectedItems) And (IsEmpty(combobox2) Or Col2 in combobox2.SelectedItems))

    If the multiple options in combobox is false then use isblank instead of isempty and combobox.selected.value instead of combobox.selecteditems
    Please refer my comment as accepted solution if it fix your problem,
    Regards.

  • Joaoandrebs Profile Picture
    361 on at

    the combobox part is ok,

     

    now the second formula filter(DS,

    (IsEmpty(combobox1) Or Col1 in combobox1.SelectedItems) And (IsEmpty(combobox2) Or Col2 in combobox2.SelectedItems))

     

    It didn't work, I didn't quite understand how to do it either.

     

    it does not identify the "Col1" that you mention in the formula

  • Joaoandrebs Profile Picture
    361 on at
  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    What does the error says

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
11manish Profile Picture

11manish 395 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 328

#3
WarrenBelz Profile Picture

WarrenBelz 260 Most Valuable Professional

Last 30 days Overall leaderboard