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 / Delegation issue with ...
Power Apps
Answered

Delegation issue with Not(Name In Gallery1.AllItems.Name)

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

I'm getting a delegation warning when using trying to filter a dropdown using the Not and In functions. Wondering if anyone has a workaround for avoiding this issue?

 

I am setting the items property of the dropdown to the following.

Filter(table1, Not(Name In Gallery1.AllItems.Name))

 

Categories:
  • Verified answer
    RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @Anonymous 

    Not and In are not delegable!

     

    One trick you can try is with AddColumns.  The AddColumns function actually returns a table, so all operators are usable on a table.

    So for example.  

    Filter(AddColumns(table1, "sName", Name), Not(sName In Gallery1.AllItems.Name))
    
    -or- if you want to shorthand the Not
    
    Filter(AddColumns(table1, "sName", Name), !(sName In Gallery1.AllItems.Name))

    This works because the filter is really on the Table that AddColumns returns, not on the datasource.

     

    As an FYI:

    This will work fine except you need to consider the size of records.  If table1 has more records than your advanced setting are set for, then you will get potentially incomplete results.

    Delegation and record limit are two different things.  Solving one does not solve the other.

     

    I hope this is helpful for you.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    @RandyHayes  great solution thanks!

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

#2
Mohsin Ali Profile Picture

Mohsin Ali 347

#3
WarrenBelz Profile Picture

WarrenBelz 254 Most Valuable Professional

Last 30 days Overall leaderboard