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 Apps
Answered

Delegation issue

(0) ShareShare
ReportReport
Posted on by 64

Hi,

I made the following filter for a gallery to find corresponding items in two datasets:

 

Sort(Filter(Absenzenuebersicht;Nachname in colTeamLernende.surname And Vorname in colTeamLernende.givenName And Datum=DatePickerAÜ.SelectedDate);Nachname)

 

This works fine but "in" and also "And" produce delegation warnings. Is there any other way to get the same result but with no delegation warning?

Thanks,

hpc

 

Categories:
I have the same question (0)
  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    @hpc1 

    It depends on how many items are in your datasets.

  • hpc1 Profile Picture
    64 on at

    There will be more than 2000 items in the SharePoint list "Absenzenuebersicht".

  • shoog Profile Picture
    2,164 on at

    Could there be more than 2000 records for one day?

    If not, you could use Collect to first get all records for that day and apply the rest of the filter on that collection to get the items you need in your gallery.

  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    @hpc1 

    See https://www.practicalpowerapps.com/delegation/power-apps-delegation-sharepoint/  for dealing with delegation issues in SharePoint. The "in" operator and the Search() function are not delegatable in SharePoint. StartsWith() is delegatable and works with Filter(). 

  • hpc1 Profile Picture
    64 on at

    Thanks for your answer. I'm somehow stuck. How can I get the same result with StartsWith() as I got with in?

  • hpc1 Profile Picture
    64 on at

    Thanks for answering. As far as I understand PowerApps will just collect the max of 2000 records from SharePoint regardless of a date filter.

    I tested it by setting the delegation limit to 1 and got just one record in my collection.

     

  • Verified answer
    shoog Profile Picture
    2,164 on at

    The delegation limit will apply after filtering, so if the date is sufficient to get less than 2000 results, that would be the preferred solution.

     

    The Startswith solution only applies to string comparisons, so unfortunately you can not use that.

  • hpc1 Profile Picture
    64 on at

    Thank you. That helped me a lot.

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

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 324 Most Valuable Professional

#2
11manish Profile Picture

11manish 193

#3
Valantis Profile Picture

Valantis 138

Last 30 days Overall leaderboard