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 List
Power Apps
Answered

Filter Gallery List

(0) ShareShare
ReportReport
Posted on by 116

Hi All,

 

I tried to created the Filter for the Gallery items. This filter will look the value for Pending, Declined, and Approved.

All this filtering is working except the All button.

 

PApps.pngBut for the All button, the filtering seem not working:

all.png

Here the code I used on the Gallery:

 

Sort(Filter('Approval' ,Status = _requestTypeFilter), Created, Descending)

Any advice how to solve this, when a users tap All button will display the all List inside the Gallery.

 

Thanks,

 

 

 

 

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

    Hello @daroot,

     

    The following should work:

    If(IsBlank(_requestTypeFilter), Sort(Created, Descending), Sort(Filter('Approval' ,Status = _requestTypeFilter), Created, Descending))

    And then paste the following formula in the "OnSelect" property for the "All" button: 

    Set(_requestTypeFilter, "")

  • Verified answer
    daroot Profile Picture
    116 on at

    Hi @dinusc,

    Thanks for the reply, but it's not working and got following error

     

    err.png

     

    The OnSelect:

    items.png

     

    Maybe something wrong from my side, I used the the poroperty:

     

    Items: Table({Filter: "All"}, {Filter: "Pending"}, {Filter: "Approved"}, {Filter: "Declined"})

    for the GalleryFilters.

     

    Any advice?

     

     

  • daroot Profile Picture
    116 on at

    Finally, I got it working based on @dinusc advice.

     

    What I did is, on the Gallery Request:

    Items: If(IsBlank(_requestTypeFilter), Sort(Approval, Created, Descending), Sort(Filter('Approval' ,Status = _requestTypeFilter), Created, Descending))

    and than on the Gallery Filters:

    OnSelect: If(ThisItem.Filter <> _requestTypeFilter, Set(_showDetails, false));
    Set(_requestTypeFilter, ThisItem.Filter)

    Is the good way to do something like this? But it's worked Smiley Very Happy

  • dinusc Profile Picture
    Microsoft Employee on at

    This looks correct to me. I'm glad you got it working.

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
Vish WR Profile Picture

Vish WR 633

#2
11manish Profile Picture

11manish 588

#3
Valantis Profile Picture

Valantis 457

Last 30 days Overall leaderboard