web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 796 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard