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 / Adding Filter function...
Power Apps
Unanswered

Adding Filter function to Gallery for a Choice Column

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

I have an app that collects repair tickets. On the Tickets screen it currently lists by most recently submitted. Is there a way to set up a filter on this screen that can filter by one of my Sharepoint Columns: "Priority" ? The column is a Choice column with 4 options: Urgent, Important, Medium, Low. I think I like that the default view shows all the tickets. But I'm not sure how to add a button or text field or whatever to filter. Thanks for your help!repair_tickets.jpeg

Categories:
  • rubin_boer Profile Picture
    4,843 Super User 2024 Season 1 on at

    hi @Anonymous you can add a filter indeed.

     

    I'm going to use a collection to show you a way to do the filtering.

    ClearCollect(colDataSource,DataSource);

    The gallery below is from the colDataSource

    gallery Items = If(IsBlank(ComboBox.Selected.Value),colDataSource, Filter(colDataSource, Xand in ComboBox.SelectedItems))

    rubin_boer_0-1621793909839.png

    The combobox to look up those 4 options with column name being Xand

    Choices(TestStuff.Xand) returns all the choices listed in the column

     

    ComboBox

    rubin_boer_1-1621793957090.png

     

    Selecting the option will reteunr the following:

    selecting uhm (all the items with choice uhm is displayed)

    rubin_boer_2-1621794479583.png

    Lets add pff as a choice

    rubin_boer_3-1621794525620.png

     

    i hop ethi swill guide you to build that filter 😉

     

     

     

     

     

     

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 342 Super User 2026 Season 2

#2
M Bilal Khan Profile Picture

M Bilal Khan 258

#3
Mohsin Ali Profile Picture

Mohsin Ali 231

Last 30 days Overall leaderboard