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 from co...
Power Apps
Answered

Filter Gallery from component

(0) ShareShare
ReportReport
Posted on by 2

Hello

 

I'm looking for information if such functionality is possible:

 

Let say I have simple app with one screen on which I have gallery.

I also have component with button.

Now I want after click button, make some changes in gallert (like filter data). Is it possible ?

Categories:
I have the same question (0)
  • Verified answer
    PowerAddict Profile Picture
    7,316 Most Valuable Professional on at
    Yes. Say for example you have a variable that's blank to begin with.

    Your gallery items property could be:

    Filter(DataSource, If(!IsBlank(variable), Column = variable, true))

    Then on the OnSelect property of the button, you could set the variable to some value. Something like:

    Set(variable, TextInput1.Text)

    Where TextInput1 is a text input where a user can type in a value (you could also get the value using a dropdown or an combo box, this is just an example).

    So once the user clicks on the button, the variable gets a value and the gallery filters based on that value.

    ---
    If you like this reply, please give kudos. And if this solves your problem, please accept this reply as the solution. Thanks!

    Hardit Bhatia
    https://thepoweraddict.com

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
11manish Profile Picture

11manish 536

#2
WarrenBelz Profile Picture

WarrenBelz 426 Most Valuable Professional

#3
Haque Profile Picture

Haque 305

Last 30 days Overall leaderboard