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 / Add a filter on a sear...
Power Apps
Answered

Add a filter on a search string (items)

(0) ShareShare
ReportReport
Posted on by 21

Hi, I've a problem to filter data in a gallery on my Power Apps app.

My data is on an Excel online (see "exceldata") an I take all the column and I can search by a texfield (see "TextSerarchBox1").

 

SortByColumns(Search([@exceldata]; TextSearchBox1.Text; "Organizer";"Resource_x0020_name";"Resource_x0020_position"); "Organizer"; If(SortDescending1; SortOrder.Descending; SortOrder.Ascending))

 

My problem is that I want to see the data filtered by "Resource_x0020_type" = "Text", in any case.

Search option works, but I need a filter too.

 

Thank you so much.

Categories:
  • Verified answer
    LaurensM Profile Picture
    12,516 Moderator on at

    Hi @MrRAM,

     

    Could you try the following adjustment:

    SortByColumns(
     Search(
     Filter([@exceldata]; Resource_x0020_type = "Text"); 
     TextSearchBox1.Text; "Organizer";"Resource_x0020_name";"Resource_x0020_position"
     ); 
     "Organizer"; 
     If(SortDescending1; SortOrder.Descending; SortOrder.Ascending)
    )

    With this code, we first filter by Resource_x0020_type and then allow the user to search the filtered dataset.

     

    If this solves your question, would you be so kind as to accept it as a solution.

    Thanks!

  • MrRAM Profile Picture
    21 on at

    Thank you so much, I'm a beginner 🙂

    Regards.

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

#2
WarrenBelz Profile Picture

WarrenBelz 192 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 135

Last 30 days Overall leaderboard