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 / Would like to search u...
Power Apps
Unanswered

Would like to search using contains instead of StartWith()

(0) ShareShare
ReportReport
Posted on by 7

Would like to change Startwith to contain but cant figure out the formula. Here's what I have

SortByColumns(Filter([@'Issue tracker'],StartsWith('Issue description', TextSearchBox1.Text)), "Title", If(SortDescending1, SortOrder.Descending, SortOrder.Ascending))

Categories:
I have the same question (0)
  • mmollet Profile Picture
    3,187 on at

    You could try the In function but this will cause you delegation issues.

  • NAV1 Profile Picture
    7 on at

    I've tried the In function but it doesnt allow me to search anything. For exmaple with this SortByColumns(Filter([@'Issue tracker'],StartsWith('Issue description', TextSearchBox1.Text)), "Title", If(SortDescending1, SortOrder.Descending, SortOrder.Ascending)) it shows the following

    NAV1_0-1683215648230.png

    When I try the In function SortByColumns(Filter([@'Issue tracker'],In('Issue description', TextSearchBox1.Text)), "Title", If(SortDescending1, SortOrder.Descending, SortOrder.Ascending)) it shows the following the inputs disappear and gives me an error

    NAV1_1-1683215723926.png

     

  • mmollet Profile Picture
    3,187 on at

    It is used in a slightly different way that most funcitons. This is used in the same was And/Or is used. So to see if Textinput1.Text is in User().FullName this would be the code:

    If(Textinput1.Text In User().FullName, true, false) <- correct

    rather than...

    If(In(Textinput1.Text, User().FullName), true, false)<- incorrect

  • NAV1 Profile Picture
    7 on at

    I need to look up in Issue Description so would this be the formula?
    SortByColumns(Filter([@'Issue tracker'],If( TextSearchBox1.Text in User().Incident Description,true,false)), "Title", If(SortDescending1, SortOrder.Descending, SortOrder.Ascending))

  • NAV1 Profile Picture
    7 on at

    I need to look up in Issue Description so would this be the formula?
    SortByColumns(Filter([@'Issue tracker'],If( TextSearchBox1.Text in User().Incident Description,true,false)), "Title", If(SortDescending1, SortOrder.Descending, SortOrder.Ascending))

  • mmollet Profile Picture
    3,187 on at

    Yes, however, I believe 'in' will have to be capitalized as well for syntax. Other than that I think that should work. I am not able to test it myself atm.

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 530

#2
WarrenBelz Profile Picture

WarrenBelz 459 Most Valuable Professional

#3
Haque Profile Picture

Haque 314

Last 30 days Overall leaderboard