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 / Creating Search with f...
Power Apps
Answered

Creating Search with filtered dropdown

(0) ShareShare
ReportReport
Posted on by 4

How do I implement search within my PowerApp? I have a drop-down that filters the location, I want the search to look for the first name or last name, and status.

JonRetro_0-1654114365548.png

The browse gallery formula is: 

SortByColumns(
Filter(
[@'Leave Tracking'],
Campus = Dropdown1.Selected.Result,
StartsWith(
Title,
TextSearchBox1.Text
)
),
"Title",
If(
SortDescending1,
Descending,
Ascending
)
)

 

How do I add search function into there?

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

    @JonRetro 

    With({somelist: Filter(
     [@'Leave Tracking'], Campus = Dropdown1.Selected.Result
     )
     },
     SortByColumns(
     Search(
     somelist, TextSearchBox1.Text, "Title","LastName",FirstName"
     ), "Title", If(SortDescending1, Descending, Ascending)
     )
    )
  • Verified answer
    WarrenBelz Profile Picture
    156,536 Most Valuable Professional on at

    Hi @JonRetro ,

    Try this (note I have assumed your field names and that they are all Single Lines of Text).

    With(
     {
     wList:
     SortByColumns(
     Filter(
     'Leave Tracking',
     Campus = Dropdown1.Selected.Result
     ), 
     "Title",
     If(
     SortDescending1,
     Descending,
     Ascending
     )
     )
     },
     Search(
     wList,
     TextSearchBox1.Text,
     "First Name",
     "Last Name",
     "Status",
     "Title"
     )
    )

     

    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.

    Visit my blog Practical Power Apps

  • bapala Profile Picture
    247 on at

    .

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 432 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 347

#3
WarrenBelz Profile Picture

WarrenBelz 254 Most Valuable Professional

Last 30 days Overall leaderboard