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 / Which filter formula i...
Power Apps
Answered

Which filter formula is better to use - as it does not bring the same result

(0) ShareShare
ReportReport
Posted on by 2

when I tested with 266 records, then below both worked fine. It filters same number of records

Filter(TblSvcHist,StartsWith(SerialNo,TextSearchBox1.Text))

Filter(TblSvcHist,TextSearchBox1.Text in SerialNo)

 

BUT when I tested with around 3000 records, both does not bring the same result

Filter(TblSvcHist,StartsWith(SerialNo,TextSearchBox1.Text))  - This brings correct result

Filter(TblSvcHist,TextSearchBox1.Text in SerialNo)   - This bring abnormal all the search having the same result of 100 records

 

Advantage/preference I give to second formula of "TextSearchBox1.Text in SerialNo" as it does the work same like

*text*

 

Confused, how to solve this, the one i prefer is bringing the wrong result. while both should bring the same result.

Please advise

Categories:
I have the same question (0)
  • Verified answer
    Pstork1 Profile Picture
    69,039 Most Valuable Professional on at

    The problem with the second one is that the 'in' operator isn't delegable so it won't get all the matches when used with a large list.  StartsWith is delegable, but will only find records where the search value is at the beginning of the SerialNo field.  'in' will find the search value anywhere in the SerialNo field, but as I said its not delegable so it will only search the records up to the Data Row limit.

  • MIA27 Profile Picture
    2 on at

    Thank you for your reply.

    But my need to have *text* option. 

    What about Search(), does it can help ?

    Please advise

  • Verified answer
    Pstork1 Profile Picture
    69,039 Most Valuable Professional on at

    Search is also not delegable.  Your only real choices if you have a large list and need to search inside a field is to

    1) Use a different Data source like Dataverse where the in operator is delegable

    2) Find a way to pre-filter the list to less than the data row limit of records before using the 'in' operator. In other words nest a delegable filter() inside a non-delegable filter.

     

    Some would also suggest you could copy the entire data source to a collection because delegation doesn't apply to local collections.  I don't recommend that because it causes more problems than it solves.  First it is time consuming for large lists and it also usually leads to data corruption since changes made while you have the data local will not be applied to your data.

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!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 545 Most Valuable Professional

#2
Haque Profile Picture

Haque 314

#3
Kalathiya Profile Picture

Kalathiya 234 Super User 2026 Season 1

Last 30 days Overall leaderboard