Announcements
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 ) )
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
Hey!I have tried this but I get an error.
SortByColumns( Filter( [@ProjectLijsten]; Search([@ProjectLijsten]; TextSearchBox1.Text; "Subordernummer" ) ); "Title"; If( SortDescending1; Descending; Ascending ) )
What error are you getting? Add a screenshot and I'll take a look 🙂
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/8a7e79e6a5c429a012a7b14b8966dd43And also this error:https://gyazo.com/bc32897eec899d63821422449b0a5f20
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.
Congratulations to our 2026 Super Users!
Congratulations to our 2025 community superstars!
These are the community rock stars!
Stay up to date on forum activity by subscribing.
11manish 534
WarrenBelz 416 Most Valuable Professional
Valantis 306