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 / Check if string contai...
Power Apps
Unanswered

Check if string contains any of the substrings in the list

(1) ShareShare
ReportReport
Posted on by 6
I have a Dataverse table with more than 5000 records. The canvas app I am building have a search screen which allows users to search for movie titles that contains specified string. Users can use multiple search strings separated by ";".
 
For example, if I have a movie tile called "Casablanca" and if users type "as; ap", it should return the record since "Casablanca" contains the string "as". However, if they specify "ap; bu", this record will not be returned.
 
I have the following filter condition which is working with warning:
 
Filter(
    MovieTitles,
    IsBlank(TitleTextInput.Value) || Sum(ForAll(Split(TitleTextInput.Value, ";"), If(Trim(Value) in rxj_primarytitle, 1, 0)), Value) > 0,
)
 
However, the above condition results in a delegation warning.
 
Is there any way to search without delegation warning? Any suggestions?
 
 
Categories:
I have the same question (0)
  • abc 123 Profile Picture
    789 Moderator on at
    I'd probably Split() the search values and put them into something that could then be used by ForAll().
    Then use the ForAll() to Collect the titles that match each of the split patterns.
    Finally, do a Distinct() to extract the unique values.
    Probably want to sort it prior to showing the user. Weave one of those in somewhere.
     
    I haven't fully researched the use of Ungroup() yet, but this is the second time I've seen it used.  Give this a good read and see if it scratches the itch:
     
     
     

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