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 / DatePicker and Delegat...
Power Apps
Unanswered

DatePicker and Delegation help

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi guys,

 

I have an app for our manufacturing areas. to input their daily metrics. There is a screen i need help with, i have a datepicker and a gallery. The gallery shows all of our 12 areas by the date picker.

 

datepicker.PNG

This was working fine until we got to the 500 limit. At the moment i have increased this to 2000 but i would like to find a work around before we reach 2000.

 

I have another screen which uses dropdowns to filter between manufacturing area and month, then it has a gallery with the list of dates in that month, user can select the date and another gallery displays the metrics. The way i got around the delegation on this screen was to create a collection each time the user selected a different manufacturing area.

OnChange= ClearCollect(colAreaMonth,Filter(MetricsAllAreas,Mnfg_Area.Value=Dropdown1.SelectedText.Value)) - this works perfectly. So i wanted to do similair with this screen.

 

My issue with the datepicker screen is, when i try to do a similair collection it doesnt like it.

I tried this OnChange=ClearCollect(colAllDailyMetrics, Filter(MetricsAllAreas, Date=DatePicker1.SelectedDate))

but i get the error - The requested operation is invalid. Server response: The expression "Date eq 2019-10-02" is not valid.

 

I can get it to sort of work by using a label with the Text=Text(DatePicker1.SelectedDate, "[$-en-US]dd mmmm yyyy") and then in my gallery i have Filter(MetricsAllAreas, Date=DateLabel.Text)

But i then get a warning to say Incompatible type. We can't evaluate your formula because the values being compared in the forumla arent the same type.

The left value is a date type and the right value is a text type.

 

Any ideas? 🙂

Categories:
  • yashag2255 Profile Picture
    24,769 Super User 2024 Season 1 on at

    Hey @Anonymous 

     
    Can you try to update your expression as:
     
    ClearCollect(colAllDailyMetrics, Filter(MetricsAllAreas, Text(Date,"mm/dd/yyyy")=Text(DatePicker1.SelectedDate,"mm/dd/yyyy")))
     
    Hope this Helps!

    If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!
  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Thanks for the quick reply @yashag2255 

     

    I added your formula but it doesnt seem to work for the delegation issue that i have. I get the delegation warning on this.

     

    delegation.PNG

  • yashag2255 Profile Picture
    24,769 Super User 2024 Season 1 on at

    Hey @Anonymous 

     

    Can you please update a setting if not already:
     
    App Settings -> Advanced Settings -> Data Row limit for Non-Delegable queries -> 2000 (This is the max limit that can be updated)
     
    Also, on what part of the formula, are you getting this delegation warning?
     
    Hope this Helps!
     
    If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!
  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Thanks @yashag2255 , this is what i want a work around for. At the moment we have 688 entries in the list. I know i can increase to 2000 which i have done, but i want to find another way to pull the data through before the list reaches 2000.

    I estimate we will have a total of 2610 entries before we move onto the next years metrics.

     

    I applied the formula to the OnChange part of the DatePicker which is where i recieve the delegation warning.

  • yashag2255 Profile Picture
    24,769 Super User 2024 Season 1 on at

    Hey @Anonymous 

     

    In that case, can you try to update the formula as:
     
    ClearCollect(colAllDailyMetrics, Filter(AddColumns(MetricsAllAreas, "CustomCol", Text(Date,"[$-en-US]mm/dd/yyyy")),CustomCol=Text(DatePicker1.SelectedDate,"[$-en-US]mm/dd/yyyy")))
    Hope this Helps!
     
    If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!
  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hey @yashag2255 ,

     

    Thanks for your help but unfortunatly i am still not getting anything past the date where it reached the limit.

     

     

  • RezaDorrani Profile Picture
    12,145 on at

    Hi @Anonymous 

     

    Dtae Picker and delegation

     

    https://www.youtube.com/watch?v=eCMuXPI1Qok

     

    --------------------------------------------------------------------------------
    If this post helps answer your question, please click on “Accept as Solution” to help other members find it more quickly. If you thought this post was helpful, please give it a Thumbs Up.

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 405 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 368

#3
WarrenBelz Profile Picture

WarrenBelz 244 Most Valuable Professional

Last 30 days Overall leaderboard