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 / In operator alternativ...
Power Apps
Answered

In operator alternative to avoid delegation

(0) ShareShare
ReportReport
Posted on by 127

Hi,

 

I have multiple SharePoint Lists and I am trying to filter contents in one list based on a dropdown selection driven by another list.

 

Please refer to the example I have made below:

example.PNG

 

I am currently using an 'in' operator to show all fruit brands associated to the selected dropdown. 

 

What alternative method (loophole) can I implement to avoid the delegation warning caused by the in operator which is not delegable. 

 

Thanks

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

    Hi @Tono_Analyst2 ,

    Firstly, in and Search are not Delegable (as you know). How many items are in the list and are you using any other filters in conjunction with in?

  • Tono_Analyst2 Profile Picture
    127 on at

    Hi @WarrenBelz , 

     

    How many items are in the list 

    I currently have 5 in the list driving the dropdown box (will increase overtime to maybe10~30). In the list that is being filtered, there will be 2000+ items (exceeding the delegation limit). 

     

    are you using any other filters in conjunction with in?

    In my actual use case, yes. I have a filter within in a filter in a rough format as follows:

    filter(List, ID in filter(...).ID)

    The reason I have nested filtering is because there are numerous related lists. I am filtering the 'end list' by a selected element at the 'top list'

    example.PNG

     

    I have tried to simplify my question in the fruit example and wish to achieve the below functionality whilst avoiding delegation errors (if possible). 

     

     

    Filter(
     'ListB',
     IsBlank(DropDown.SelectedItems) || 'GUID' in DropDown.Selected.GUID
    )

    I apologise in advance for the confusion.

     

  • Verified answer
    WarrenBelz Profile Picture
    155,342 Most Valuable Professional on at

    Hi @Tono_Analyst2 ,

    I asked the question on other filters as you can "pre-filter" with a delegable filter and then if the result is under 2,000 items, apply the non-delegable filter to it, but this is not the case for you.

    Assuming GUID is numeric, you could do a Collection

    ForAll(
     DropDown.SelectedItems As aGUID,
     Collect(
     colB,
     If(
     IsBlank(DropDown.SelectedItems),
     'ListB',
     Filter(
     'ListB',
     'GUID' = aGUID
     )
     )
     )
    )

     

    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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 883

#2
Valantis Profile Picture

Valantis 571

#3
11manish Profile Picture

11manish 477

Last 30 days Overall leaderboard