Announcements
With( { _activerequests: SortByColumns( Filter( 'Datasource', (Len('Process Type CB'.Selected.Value) = 0 || ChoiceProcessType.Value = 'Process Type CB'.Selected.Value) && (Len('Employee Type CB'.Selected.Value) = 0 || ChoiceResourceType.Value = 'Employee Type CB'.Selected.Value) && (Len('Region CB'.Selected.Title) = 0 || Region_New = 'Region CB'.Selected.Title) ), "Created", SortOrder.Descending ) }, SortByColumns( Filter( _activerequests, Len(SearchBox.Text) = 0 || SearchBox.Text in HM.DisplayName || SearchBox.Text in DL.DisplayName || SearchBox.Text in FirstName || SearchBox.Text in Title || SearchBox.Text in 'Id' || SearchBox.Text in 'Created By'.DisplayName ), varsortcolumn, varsortdirection ) )
Your formula structure is actually correct. The top Filter inside the With statement is delegable and will work fine against any size list. The issue is the in operator used for SearchBox, which is non-delegable and only runs locally against whatever the top Filter returns, capped at your Data Row Limit.
So if your dropdowns are filtering down the results well below 2000 before the search runs, you will not hit any issues. The problem only shows up when all dropdowns are blank and someone searches the full dataset, because records beyond the limit simply will not be visible.
The simplest fix without rewriting everything is to require at least one dropdown to be selected before the search activates. That keeps the delegable Filter doing the heavy lifting and the local search working on a manageable subset.
If you genuinely need full contains search across all 2000 plus records with no pre-filter, switching to Dataverse is the proper long term solution as SharePoint cannot support that pattern reliably.
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.
Jump in, show your community spirit, and win prizes!
Expanding mentorship, skilling, and AI innovation
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Valantis 424
WarrenBelz 355 Most Valuable Professional
11manish 290