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 problem: Fi...
Power Apps
Unanswered

Delegation problem: Filter(..., some_field in listOfIntegers)

(0) ShareShare
ReportReport
Posted on by 7

Dear community,

 

I have a SharePoint list Bestellungen, whose entries contain a lookup column "KlasseLehrerID".

Now I have a table/collection with a handful of integers and want to filter all items from Bestellungen that have a KlasseLehrerID which appears in this table of integers. The result of the Filter serves as data for a gallery.

 

I can't get to run this without delegation problems (the Bestellungen list could be more than 2000 rows big). Do you have any clue how to get this delegated?

 

This is what I tried:

 

The collection is called "KLids" (it's not static. It gets created in OnVisible of the screen)

Screenshot 2022-05-20 at 15.52.46.png

 

I tried this directly in the table:

Filter(Bestellungen, KlasseLehrerID.Value in KLids) // --> works, but delegation warning

 

Then I tried to use a For-loop, outsourced into a hidden button which is selected whenever something could change in the list:

Clear(BesList);

ForAll(KLids As kid,
Collect(BesList, Filter(Bestellungen, KlasseLehrerID.Value = Text(kid.Result)))
)

 

This collection BesList is then used as source for the gallery.

But it still gives me the delegation warning. 

Categories:
I have the same question (0)
  • Verified answer
    BCBuizer Profile Picture
    22,505 Super User 2025 Season 2 on at

    HI @kgrjnn ,

     

    What happens if you remove the Text() function? If you are using it because the Result column is of type Number, you can also try changing it to a Text type when pulling together the collection.

  • kgrjnn Profile Picture
    7 on at

    Thanks, that did the trick!

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 796 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard