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 / How to avoid delegatio...
Power Apps
Answered

How to avoid delegation warning for "not equal" to ID

(0) ShareShare
ReportReport
Posted on by

I have a collection named "booking". I want to compare one of item with all the other items in the same collection. Therefore I want to filter out all rows in "booking" beside ID=bid. My code:

 

Filter(booking,(ID<>bid)

 

But it prompt me for delegation warning. How can I get rid of it?

Categories:
I have the same question (0)
  • WarrenBelz Profile Picture
    153,059 Most Valuable Professional on at

    Hi @Anonymous ,

    Unfortunately you cannot - the <> (not equals) operator is not Delegable.

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

    Visit my blog Practical Power Apps

  • Community Power Platform Member Profile Picture
    on at

    I am using SharePoint as data source now. Will upgrade to Dataverse avoid the limit forever? 

  • WarrenBelz Profile Picture
    153,059 Most Valuable Professional on at

    @Anonymous ,

    I am not a Dataverse user, but I believe this is Delegable (refer this document) - I assume you understand the additional licensing cost that will be involved.

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

    Visit my blog Practical Power Apps

  • Community Power Platform Member Profile Picture
    on at

    After I applied "With" as below, the delegation warning is suddenly gone:

     

    With({_preFilter: Filter(Booking,((StartTime <= myStartTime)},
    Filter(_preFilter,(ID<>bid)
    ))

     

    I am wondering what the justification of delegation warning is.

     

    In my environment, before applying the _prefilter the number of rows is about 100 only. After applying _prefilter there are 10 rows.  Both are far below 2,000 rows limit.

  • Verified answer
    WarrenBelz Profile Picture
    153,059 Most Valuable Professional on at

    @Anonymous ,

    It may be masking it however - With() is a "hidden" Delegation limit (I would have suggested it however if you had another filter in the code you posted). This code relies on the number of records returned from the With() statement is less than your Delegation limit.

    With(
     {
     _preFilter: 
     Filter(
     Booking,
     StartTime <= myStartTime
     }
     {,
     Filter(
     _preFilter,
     ID <> bid
     )
    )

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

    Visit my blog Practical Power Apps

     

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

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 319 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard