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 / Multiple Search Criter...
Power Apps
Answered

Multiple Search Criteria Text Box

(0) ShareShare
ReportReport
Posted on by 61

I am a dummy with no programming experience, your help is greatly appreciated! 

First of all, I have a table called "Movements", with two columns - "Name" and "Location"

NameLocation
JayTasmania
KaySydney

 

I have created a textbox to use as a search box, named "FilterTextBox"
below is the function I used to search for the "Name" in the Gallery

 

Sort(If(IsBlank(FilterTextBox),Movements,Search(Movements, FilterTextBox.Value,Name)),Name)

 

How do I incorporate "Location" into the function? So that I can also search for both name and location.

Your insights and solution are much appreciated. 

Categories:
  • Verified answer
    RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @Georgetown15x 

    Consider the following change to your formula for your Items property of your Gallery:

     

    SortByColumns(
     Search(
     Search(Movements, FilterTextBox.Text, "Name"),
     FilterLocationTextBox.Text, "Location"
     ),
     "Name"
    )

     

    This is assuming you are putting a separate text input control for your Location filter (FilterLocationTextBox).

    If not, and you just want to search both columns with the same criteria in the one textbox, then consider this:

     

    SortByColumns(
     Search(Movements, FilterTextBox.Text, "Name", "Location"),
     "Name"
    )

     

     

    I hope this is helpful for you.

     

  • Georgetown15x Profile Picture
    61 on at

    Hi @RandyHayes 


    It gives me the error - The function 'Search' has some invalid arguments. Please help.

    Georgetown15x_0-1600908437070.png


    *The data was stored in Common data service; therefore the Name is "crcf8_name". In case you're wondering.

  • Georgetown15x Profile Picture
    61 on at

    You're definitely the smartest person I ever met. Bravo!

  • RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @Georgetown15x 

    Sorry about the cross-edit.  You must have picked up my first reply that actually had a syntax issue in it.  I corrected it and I am assuming you discovered that.

    Glad you got some moving forward 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

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

11manish 409 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 328

#3
WarrenBelz Profile Picture

WarrenBelz 252 Most Valuable Professional

Last 30 days Overall leaderboard