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 warning : i...
Power Apps
Unanswered

Delegation warning : i have used gallery for data display and getting warning on there for IN filter like this.

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Delegation warning : i have used gallery for data display and getting warning on there for IN filter like this.

Categories:
  • WarrenBelz Profile Picture
    156,532 Most Valuable Professional on at

    Hi @Anonymous ,

    You did not post the Filter code, but the in filter 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

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at
    SortByColumns(
    
     Filter(
    
     Sessions,
    
     'Session Number'in Filter(Registrations,
    
     Not(Status.Value="Cancelled")).'Session Number'
    
     || Not('Session Number'in Registrations.'Session Number'))
    
     ,"SessionNumber",Ascending)

    Thank you so much sir for quickly response and sorry for delay from my side.

     

    i am adding my code here, about delegation warning on gallery.

    SortByColumns(

           Filter(

             Sessions,

             'Session Number'in Filter(Registrations,

             Not(Status.Value="Cancelled")).'Session Number'

          || Not('Session Number'in Registrations.'Session Number'))

          ,"SessionNumber",Ascending)

  • WarrenBelz Profile Picture
    156,532 Most Valuable Professional on at

    @Anonymous ,

    I am not sure where to start here, but the entire filter is involved here.

    • The in filter (2 of them)
    • The Not() argument
    • The relational Filter to the other list

    are all not delegable. You simply cannot do what you are attempting in a Delegable manner.

     

    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
    Microsoft Employee on at

    Yes,

    We don't have any beginning or ending. We are filling in all of the data from the SharePoint list.

    initial list: Session —5 sessions only are there.

    Second list: Registration;-- this list has 1000 users.

    My total records are 5000, but that number could rise, which is why the gallery sent me a delegation warning.

     

    how can i optimist my query 

     

  • WarrenBelz Profile Picture
    156,532 Most Valuable Professional on at

    @Anonymous ,

    The below is a rather "clunky" workaround on the assumption that

    • Registrations will never be more than 2,000 items
    • The newest 2,000 items in Sessions will contain the records you need
    • Your Delegation limit is set to 2,000
    With( 
     {
     wReg: Registrations,
     wSessions:
     Sort(
     Sessions,
     ID,
     Descending
     )
     },
     With(
     {
     wCurrent:
     Filter(
     wReg,
     Status.Value <> "Cancelled"
     )
     },
     Filter(
     wSessions,
     !('Session Number' in wCurrent.'Session Number')
     )
     )
    )

     

    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
    Microsoft Employee on at

    thank you for reply but still showing warning on gallery.

  • WarrenBelz Profile Picture
    156,532 Most Valuable Professional on at

    @Anonymous ,

    What is not Delegable in that code ?

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    thanks for asking.

    radhe_mali_0-1665668390381.png

     

  • WarrenBelz Profile Picture
    156,532 Most Valuable Professional on at

    @Anonymous ,

    I need to see what is underlined in blue in your code.

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