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 / Really confused with d...
Power Apps
Unanswered

Really confused with delegation warnings. I have a filter that uses 'in' inside the fomula

(0) ShareShare
ReportReport
Posted on by 826 Moderator

hello everyone,

I've tried to search in the community first before asking however I do not understand most of the solution that was given to the users with the same delegation problems with me. The answers are mostly specific to their question that's why its kind of confusing

I have this formula that is giving me a delegation warning

 

Sort(
 Filter(
 'DataSource',
 //can be seen by the Requestors
 'Created By'.Email = varUserMail && galFilters.Selected.Filter in 'Overall Approval Status'.Value||
 //can be seen by the Approvers
 'Approver 1' = varUserMail && galFilters.Selected.Filter in 'Overall Approval Status'.Value ||
 'Approver 2' = varUserMail && galFilters.Selected.Filter in 'Overall Approval Status'.Value 
 ),
 ID,
 SortOrder.Descending
 )

 

 

 

Categories:
I have the same question (0)
  • Pstork1 Profile Picture
    69,026 Most Valuable Professional on at

    the "in" operator is never delegable if the data source is SharePoint. If the data Source is Dataverse and the field is text then it is delegable. Based on your formula I expect you are using SharePoint. So in is never delegable.

  • Ami K Profile Picture
    15,687 Super User 2024 Season 1 on at

    @kej assuming your data source is SharePoint, the in function is not delegable.

     

    https://learn.microsoft.com/en-us/connectors/sharepointonline/#power-apps-delegable-functions-and-operations-for-sharepoint 

     

    However, if you have a specific field that you can filter on, and you can be certain that filtering on that field will return less than max 2000 rows, it will be possible to use the in function on that smaller filtered subset of data without worrying about the impact of delegation. 

     

    Have a think and I will share a possible solution.

  • Ami K Profile Picture
    15,687 Super User 2024 Season 1 on at

    @kej - I will leave you with @Pstork1 as I see he responded to you already.

  • KevinGador Profile Picture
    826 Moderator on at

    you are correct im using a sharepoint list. Are there any workarounds that I can use for using contains or in?

  • KevinGador Profile Picture
    826 Moderator on at

    looking forward to a possible workaround. I am also searching for this.

  • WarrenBelz Profile Picture
    154,494 Most Valuable Professional on at

    HI @kej ,

    Firstly, you may have a window depending on how many records are returned here, or more specifically whether the newest records will do the job

    With(
     {
     _Data:
     Filter(
     Sort(
     'DataSource',
     ID,
     SortOrder.Descending
     ),
     'Created By'.Email = varUserMail || 
     'Approver 1' = varUserMail || 
     'Approver 2' = varUserMail
     )
     },
     Filter(
     _Data,
     galFilters.Selected.Filter in 'Overall Approval Status'.Value
     )
    )

    but my other question is regarding the field types of Filter (very bad name for a field with high Ambiguity potential) in the Gallery and 'Overall Approval Status' and why you need to use the in Filter.

     

    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.

    MVP (Business Applications)   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!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 529 Most Valuable Professional

#2
Haque Profile Picture

Haque 230

#3
Kalathiya Profile Picture

Kalathiya 217 Super User 2026 Season 1

Last 30 days Overall leaderboard