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 a Gallery with ...
Power Apps
Answered

Filter a Gallery with Buttons

(0) ShareShare
ReportReport
Posted on by 63

Hi All

I am having trouble filtering my Gallery Results with buttons.

At the moment, I have the multiple buttons in a Container. I have 3 sets of what i want to filter.

1. Request Type - All plus 5 specific options

2. Allocated to - Unallocated, Other plus 3 employee names

3. Progress - Not Started, In Progress, Completed, Cancelled

 

I want to be able to pick any of the options to filter down my gallery list.

for example, I would click one of the Request Type butons, then an Allocated to name, then Progress. Then if i want to revert to all request types (select All button) I want to ensure all other filters are retained deselected.

 

KristyH_0-1702600008996.png

I also have the Client Name Search Box working on Items of Gallery:   Search('DataSource',SearchBox.Text,"ClientName")

but i am not sure if i need to put the filter items for the buttons in the gallery, and if so, what code.

 

Thanks for your assistance

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

    Hi @KristyH ,

     

    Is it possible that uses will select multiple options for a single criterion? For example, Not Started, In Progress, Completed all selected for Progress, which means the user would like to filter items match three progress status.

     

    Best regards,

  • KristyH Profile Picture
    63 on at

    yes that is possible.  i want to be able to use the filter for the multiple filters

  • KristyH Profile Picture
    63 on at

    any updates on this team?

  • Verified answer
    v-jefferni Profile Picture
    Microsoft Employee on at

    Hi @KristyH ,

     

    I had some thoughts. In short words, there needs to be three collections for the three sets of buttons.

    OnSelect of 5 buttons for Request Type:

    Collect(colRequestType, {Value:Self.Text})

     

    OnSelect of 5 buttons for Allocated to:

     

    Collect(colAllocatedTo, {Value:Self.Text})

     

     

    OnSelect of 4 buttons for Progress:

     

    Collect(colProgress, {Value:Self.Text})

     

     

    OnSelect of "All" Button:

    Clear(colProgress);Clear(colRequestType);Clear(colAllocatedTo)

     

    To filter using selected options, formulas could be as follows:

    Filter(Search('DataSource',SearchBox.Text,"ClientName"), If(!IsBlank(colRequestType), 'Request Type' in colRequestType.Value, true), If(!IsBlank(colAllocatedTo), 'Allocated To' in colAllocatedTo.Value, true), If(!IsBlank(colProgress), Progress in colProgress.Value, true))

     

    Best regards,

  • KristyH Profile Picture
    63 on at

    hi @v-jefferni i have tried your suggestion above, however there is no data showing in my gallery.  even when pressign the buttons, it has not shown any results. my galelry is just blank

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
WarrenBelz Profile Picture

WarrenBelz 329 Most Valuable Professional

#2
11manish Profile Picture

11manish 209 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 179

Last 30 days Overall leaderboard