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 / Search Formula - Two V...
Power Apps
Unanswered

Search Formula - Two Variable

(0) ShareShare
ReportReport
Posted on by 15

Hi, all. I am seeking a formula to use to be able to use the search box and look for data in two different columns. Currently the default formula from the app building process gives me the ability to search for the "Title" column (which is formatted as text). I'd like the ability to add a second search variable which is the "Ranch" column (in the sub-title position within the gallery) - which is a number value.

 

Is this possible? If so, what formula could I use? Screenshot attached.

 

Thanks for any help.

 

Paul

Screenshot (9).png

Categories:
  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    Search only works on text. To search numbers use Filter() or convert your Ranch column to text.

  • SLOHombre Profile Picture
    15 on at

    Thanks. How would that look in terms of a formula? Where would I place the filter formula?

  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    @SLOHombre 

     

    Filter(SPlist, StartsWith("Title", TextSearchBox1.Text)|| TextSearchBox1.Text in Ranch)

     

    The "in" operator will give you a delegation warning but if your list does not exceed the maximum number of items allowed under advanced settings (default 500, max 2k), there won't be a problem.  You can leave the StartsWith() part alone and just add the second part. _1.png

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 221 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 188 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 120

Last 30 days Overall leaderboard