Skip to main content

Notifications

Community site session details

Community site session details

Session Id : TT0/xOdxRTtc2cjFYLgNPv
Power Apps - Building Power Apps
Answered

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

Like (0) ShareShare
ReportReport
Posted on 14 Oct 2022 16:46:43 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?

  • Verified answer
    WarrenBelz Profile Picture
    146,668 Most Valuable Professional on 19 Oct 2022 at 09:05:55
    Re: How to avoid delegation warning for "not equal" to ID

    @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

     

  • Community Power Platform Member Profile Picture
    on 19 Oct 2022 at 08:18:33
    Re: How to avoid delegation warning for "not equal" to ID

    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.

  • WarrenBelz Profile Picture
    146,668 Most Valuable Professional on 17 Oct 2022 at 09:32:38
    Re: How to avoid delegation warning for "not equal" to ID

    @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 17 Oct 2022 at 08:19:41
    Re: How to avoid delegation warning for "not equal" to ID

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

  • WarrenBelz Profile Picture
    146,668 Most Valuable Professional on 15 Oct 2022 at 05:12:45
    Re: How to avoid delegation warning for "not equal" to ID

    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

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,668 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,004 Most Valuable Professional

Leaderboard
Loading started