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 / Filter based on textse...
Power Apps
Answered

Filter based on textsearchbox

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hello!

I am programming an application and I want startswith to be replaced with the function search. How can I do this?

SortByColumns(
 Filter(
 [@ProjectLijsten];
 StartsWith(
 Title;
 TextSearchBox1.Text
 )
 );
 "Title";
 If(
 SortDescending1;
 Descending;
 Ascending
 )
)

 

Categories:
I have the same question (0)
  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hey mate,

     

    Use the Search function like so:

     

    Search([@ProjectLijsten], TextSearchBox1.Text, Title)


    Regards,

    Jacob Shand | Automation Specialist

    NextStep Creations


    Taking your PowerApps Skill the NextStep

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hey!

    I have tried this but I get an error.

    SortByColumns(
     Filter(
     [@ProjectLijsten];
     Search([@ProjectLijsten];
     TextSearchBox1.Text;
     "Subordernummer"
     )
     );
     "Title";
     If(
     SortDescending1;
     Descending;
     Ascending
     )
    )
  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    What error are you getting? Add a screenshot and I'll take a look 🙂

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Apparently it is expecting the column to be text only. So I'll need to change that. And then it's saying the filter and search functions have invalid arguments. @Anonymous 

    Changed it to a text column and I now get this error:
    https://gyazo.com/8a7e79e6a5c429a012a7b14b8966dd43

    And also this error:
    https://gyazo.com/bc32897eec899d63821422449b0a5f20

  • Verified answer
    v-xida-msft Profile Picture
    Microsoft Employee on at

    Hi @Anonymous ,

    Do you want to replace the Filter function with Search function within your formula?

     

    Based on the needs that you mentioned, I think there is something wrong with it. Please consider modify your formula as below:

    SortByColumns(
     Search(
     [@ProjectLijsten];
     TextSearchBox1.Text;
     "Title"
     );
     "Title";
     If(
     SortDescending1;
     Descending;
     Ascending
     )
    )

    More details about Search function, please check the following article:

    Search function

     

    Please take a try with above solution, check if the issue is solved.

     

    Best 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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 534

#2
WarrenBelz Profile Picture

WarrenBelz 416 Most Valuable Professional

#3
Valantis Profile Picture

Valantis 306

Last 30 days Overall leaderboard