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 / Adding search function...
Power Apps
Answered

Adding search function to gallery being filtered by a gallery

(0) ShareShare
ReportReport
Posted on by

Hello I am struggling with adding the search function to the top part of my If statement. I set up a gallery and added buttons but i cannot for the life of me get it to search when the filter is set to 'All'

 

 

If(
 GalFilter.Selected.Filter = "All",
 'SIO Sub K',
 Filter(
 Search('SIO Sub K', TextInput1.Text, "Title"),
 Status.Value = GalFilter.Selected.Filter
 )
)

 

Categories:
I have the same question (0)
  • ANB Profile Picture
    7,252 Super User 2026 Season 1 on at

    Hi @dhubach , Try this

    EDITED:

     

    If(
     GalFilter.Selected.Filter = "All",
     Filter('SIO Sub K', Status.Value in ["Approve","Reject","Pending", "In-Progress"]),
     Search( Filter(
     'SIO Sub K', 
     Status.Value = GalFilter.Selected.Filter
     ),TextInput1.Text, "Title"),
    )

     

     

    -----------------------------------------------------------------------------------------------------------------------------

    I hope this helps.

    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.👍

    Thanks,
    ANB


  • Verified answer
    kelseytran Profile Picture
    292 on at

    Hi @dhubach ,

     

    Try this code. You'll have to adjust where it says 'Title' and 'Description' depending on what 

    whatever columns you're using the search for/trying to search.

    If(
     GalFilter.Selected.Filter = "All",
     If(
     IsEmpty(TextInput1.Text),
     'SIO Sub K',
     Filter(
     'SIO Sub K',
     Or(
     StartsWith(Title, TextInput1.Text),
     StartsWith(Description, TextInput1.Text)
     )
     )
     ),
     Filter(
     'SIO Sub K',
     Status.Value = GalFilter.Selected.Filter &&
     Or(
     IsEmpty(TextInput1.Text),
     StartsWith(Title, TextInput1.Text),
     StartsWith(Description, TextInput1.Text)
     )
     )
    )

     

  • dhubach Profile Picture
    on at

    Swapped out isempty with is blank and worked like a charm. You just saved my day. Thank you so much!

  • kelseytran Profile Picture
    292 on at

    Of course! Glad I could help!

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 541

#2
WarrenBelz Profile Picture

WarrenBelz 434 Most Valuable Professional

#3
Valantis Profile Picture

Valantis 289

Last 30 days Overall leaderboard