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 by mult...
Power Apps
Unanswered

Filter gallery by multiple buttons

(0) ShareShare
ReportReport
Posted on by 87

Hello all,

 

I have a gallery with billing tracker, which I would like to filter based on "quick" filters - buttons below the gallery.

 

In buttons I have set 2 boolean context variables filterOpen (for not sent invoices) and filterMyRequests to filter only requests by current user. Buttons Onselect properties are set as following:

UpdateContext({filterOpen: !filterOpen})

UpdateContext({filterOpen: !filterOpen})

 

I am struggling with setting the Gallery Items to show correct result. Below code is bet what I got, but it does not work as expected. When I select only one button, it works. But when I select both, result is whole table 

Filter(
 colBillings,
 If(
 filterOpen,
 DocumentStatus <> "Sent"
 ) || If(
 filterMyRequests,
 varUser.Email = RequestedBy.Email
 )
)

 

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

    See if this helps:

     

    https://www.youtube.com/watch?v=SJqbYa8Tqpk&t=58s

     

    If you need additional help please tag me in your reply and please like my reply.
    If my reply provided you with a solution, pleased mark it as a solution ✔️!

    Best regards,

    Gonçalo Nogueira

    Check my LinkedIn!

    My website!

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 345 Most Valuable Professional

#2
11manish Profile Picture

11manish 207 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 177

Last 30 days Overall leaderboard