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 / Fflter one table by an...
Power Apps
Answered

Fflter one table by another without delegation warnings

(0) ShareShare
ReportReport
Posted on by 2,297

This following formula uses "in" to filter one table by another, but returns a delegation warning:

 

Filter(
TableB,
ID_Entidade in Filter(
TableA,
Tipo1 = VarA|| Tipo1 = VarB
).ID1
)

 

How to prevent that warning?

Categories:
  • Verified answer
    Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    Hi @WebPortal 

    The "in" operator will always give a delegation warning for certain data sources (SharePoint, Excel).  To avoid it you can create a collection of Table A,  ie ClearCollect(TblA,TableA) and  use that instead of the actual table.  This will work as long as you have less than 2000 items in TableB.  As long as you are using collections, delegation warnings will not apply.  You could also use the With() function as in the modification below.  You won't get a warning but the results may not be correct if more than 2000 items are in the table.   

     

    With({TblA:TableA},
     Filter(
     TableB,
     ID_Entidade in Filter(
     TblA,
     Tipo1 = VarA|| Tipo1 = VarB
     ).ID1
     )
    )

     

  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    Another option that would work in limited situations is where Table A does not get modified, then it can be added as an Excel Static data source and delegation is not a factor.  Up to 15,000 items can be in an Excel static data source. The upload takes seconds and formulas using a static table are executed almost instantly. For more information see my post on how I upload  43000 zip codes for my apps with static Excel data sources. https://powerusers.microsoft.com/t5/News-Announcements/Automatically-Prefill-City-and-State-using-Zip-Codes-in-your-App/ba-p/200465 

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

#2
WarrenBelz Profile Picture

WarrenBelz 188 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 130

Last 30 days Overall leaderboard