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 / Getting following erro...
Power Apps
Unanswered

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 .

(0) ShareShare
ReportReport
Posted on by 6

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 ...

errornew.png
Categories:
  • eka24 Profile Picture
    20,925 on at

    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:
    ClearCollect(MyTable,'[dbo].[SQlTable]')

     

    Then

    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.

  • GarethPrisk Profile Picture
    2,828 on at

    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 )));

     

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 382 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 329

#3
WarrenBelz Profile Picture

WarrenBelz 187 Most Valuable Professional

Last 30 days Overall leaderboard