web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Apply gallery filter w...
Power Apps
Unanswered

Apply gallery filter when a button is pressed.

(0) ShareShare
ReportReport
Posted on by 50

I have three variables set for three different gallery filter scenarios.  I want to apply the variables to the gallery but cannot figure it out.  The variables work fine alone but I need to assign them to individual buttons and have them affect change to the gallery. 

 

Categories:
I have the same question (0)
  • OdinDelToro Profile Picture
    407 on at

    Hello @sfcmartint1985,

     

    Might not be the best advise considering performance, but have you considered using the visible property to different galleries with the filters applied with the variables so that after selecting the button it will make visible the gallery and hide the others within same screen.

     

    Hope this helps clarify the doubt, let me know in case you're still facing an issue within it.

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

     

  • rubin_boer Profile Picture
    4,841 Super User 2024 Season 1 on at

    hey @sfcmartint1985 

     

    Can you share a bit more on your variables? 

     

    Consider this:

    The button assigns you criteria to the variable using Set or UpdateContext and you filter the gallery with that variable. Why have three i am curious.

     

    Example:

    Button: OnSelect = UpdateContext({varSomething: ThisItem.id})

     

    Gallery Filter:  Items = Filter(colSomething, id = varSomething)

     

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 765 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 272

Last 30 days Overall leaderboard