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 / How to search in only ...
Power Apps
Answered

How to search in only one category in excel collumn

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hello all!

 

I have a textsearch box connected to a gallery, with the following code:

 

SortByColumns(Search([@Table3], TextSearchBox1_1.Text,"Category" ,"Full_x0020_Name", "Shortname"), "Shortname", If(SortDescending1, Descending, Ascending))

 

I would like to only search through one specific category within the "category" collumn, (data from excel). How can I limit any results to this?

 

Thanks

Categories:
I have the same question (0)
  • Verified answer
    timl Profile Picture
    37,283 Super User 2026 Season 2 on at

    @JosephineL 

    You can nest the call to Search inside a call to Filter. This formula will further filter the search results to only those that match category XYZ.

     

    SortByColumns(
     Filter(
     Search([@Table3], TextSearchBox1_1.Text,
     "Category" ,"Full_x0020_Name", "Shortname"
     ),
     Category="XYZ"
     ), 
     "Shortname", 
     If(SortDescending1,Descending,Ascending)
    )

     

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    It worked perfectly, thank you!

    (And thanks for formatting my code, I should really work on that ;))

  • timl Profile Picture
    37,283 Super User 2026 Season 2 on at

    You're welcome @JosephineL - glad that works!

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
WarrenBelz Profile Picture

WarrenBelz 429 Most Valuable Professional

#2
11manish Profile Picture

11manish 191 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 122 Super User 2026 Season 2

Last 30 days Overall leaderboard