web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Delegation warning. Th...
Power Apps
Unanswered

Delegation warning. The "StartWith" part of this formula miht not work correctly on large data sets

(0) ShareShare
ReportReport
Posted on by 34

Hello dears, how solve below issue, please help me.

"Delegation warning"

 

  1. Text(ID)
  2. DatePicker2
  3. DatePicker2_1

 


11445.png

Categories:
I have the same question (0)
  • Verified answer
    RandyHayes Profile Picture
    76,297 Super User 2024 Season 1 on at

    @gantulga1 

    The majority of your formula is not delegable.  

    If you are dealing with now, or will deal with later, more than 2000 records, then your formula will not work as is.  If you will never have this situation, then you can ignore the warning message.

     

    If not, then you can narrow your formula by delegable criteria and then post filter by non-delegable.

    ex.

    With({_adjustedEnd: DateAdd(DateAdd(DatePicker2_1.SelectedDate, 1, Days), -1, Milliseconds)},
     With({preFilter: 
     Filter('Project daily report', 
     'Created By'.Email = glbMail &&
     Day >= DatePicker2.SelectedDate &&
     Day <= _adjustedEnd
     )
     },
     
     SortByColumns(
     Filter(preFilter, 
     StartsWith(Text(ID), TextSearchBox1_1.Text)
     ),
     "Day",
     If(SortDescending1, Descending, Ascending)
     )
     )
    )
    

    The above is a delegable operation and is equivalent to your original formula.

     

    I hope this is helpful for you.

     

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard