Showing results for 
Search instead for 
Did you mean: 
Frequent Visitor

Getting following error when trying to fectch data into a varaible using Filter the error as following "Filter Part of this Formula may not work correctly on large Dataset"s .

Thanks, in Advance  Guys for your time and Support...


I have created a variable to get some data for validation using the following code 


Set(strdt,Filter('[dbo].[SQlTable]',( Title4_1.Text in Details && StartDate = Text(StartDate) && EndDate = Text(EndDate));


What I have tried is changing the App Setting 500 to 2000 But still facing the same issue.

is any better way to get the data from SQL table for validation please Help ...

Super User III
Super User III

What is the structure of the date column?

In is Delegated by Date Column should be structured in numbers to avoid delegation issues.


Meanwhile, try a collection OnStart:



Set(strdt,Filter(MyTable,( Title4_1.Text in Details && StartDate = Text(StartDate) && EndDate = Text(EndDate))



If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

Super User II
Super User II

A couple of quick questions/suggestions:

  • Is there a reason you're putting this table of records in a variable? Can it be a Collection instead?
  • Here is a quick overview of Power Apps delegation
  • The Filter function supports comma-delimited functions, and will evaluate all of them - it's easier to read the list, instead of relying on combining them with multiple &&'s

In your example, SQL is a delegable source. Therefore, it will support delegation of queries with common, supported methods.

The part which is likely tripping it up is explicitly calling the wrapper Text function, as part of your query. In theory, this doesn't resolve once (as you may expect), but instead if now being called as part of query and all data sources will not support this.


To fix it, I would recommend two things:

  • Make your Date values variables, before you get the data
    • Set ( gblStartDate, Text(StartDate) )
    • Set ( gblEndDate, Text(EndDate) )
  • Consider putting this data into a Collection
    • This is inherently a table structure, and is simpler to troubleshoot
    • Both a table variable and Collection will have the same columns, but the Collection will be much easier to work with syntactically
  • (You may want to do it for the Text value, as well, but this should be supported as-is)
Collect(colStrdt,Filter('[dbo].[SQlTable]',( Title4_1.Text in Details, StartDate = gblStartDate, EndDate = gblEndDate )));


Helpful resources

News & Announcements

Community Blog

Stay up tp date on the latest blogs and activities in the community News & Announcements.

Power Apps Community Call

Power Apps Community Call- January

Mark your calendars and join us for the next Power Apps Community Call on January 20th, 8a PST

PP Bootcamp Carousel

Global Power Platform Bootcamp

Dive into the Power Platform stack with hands-on sessions and labs, virtually delivered to you by experts and community leaders.


Power Platform Community Conference On Demand

Watch Nick Doelman's session from the 2020 Power Platform Community Conference on demand!

Top Solution Authors
Top Kudoed Authors
Users online (8,599)