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 / Alternative solution -...
Power Apps
Answered

Alternative solution - query producing delegation warning

(0) ShareShare
ReportReport
Posted on by 72

Hello,

I have a query that is suppose to produce me list of items that isn't in the first 20 rows, sorted alphabetically.

 

Filter('Exclusion List',Not(Title in FirstN(Sort( 'Exclusion List', Title),20).Title))

 

Now this query gives me delegation warning, due to the "IN" clause. This is all too complex for me, I don't even know where to begin writing alternative solution for this filter. Can anyone advise on alternative approach please?

 

Regards

Kira

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

    Hi @Kira-Daw ,

    Syntax is below, but you have a field referring to itself - what are you looking for in the Title field?

    With(
     {
     wList:
     Sort(
     'Exclusion List',
     Title
     )
     },
     Filter(
     FirstN(
     wList,
     20
     ),
     !(Title in Title) //this is wrong - you are referring to a field equalling itself
     )
    )

     

    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

  • Kirah Profile Picture
    72 on at

    Hello @WarrenBelz 

     

    Thanks for your response. I really appreciate it.  I'm yet to give it a go...and see how it goes 🙂

     

    The reason why I was referring to the same table is... basically I'm trying to filter a list alphabetically (it's a simple list with title and description column).

     

    > Once filtered I want it to ignore the first 20 items in the list and bring me back the rest of the items from the same list...This is why I was referring to the same column.. 

     

    Please let me know why I  shouldn't refer to the same title equaling itself.... should I have relied on the description column instead?

     

    Please let me get your view so that I can get better.

     

    Regards

    Kira

     

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

    Hi @Kira-Daw ,

    If you refer a field value to itself, all records will be true in the filter

  • Kirah Profile Picture
    72 on at

    @WarrenBelz 

    So sorry, I'm not getting too far with this. 😞

    Can you advise me how I can achieve my goal as explained before, which is:

     

    > Get all items in a Sharepoint List, sort the items alphabetically

    > Then display the items that are not in the first 20, in a gallery.

     

    I would appreciate your direction on this please.

     

    Regards

    Kira

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

    Hi @Kira-Daw ,

    I will leave out the filter as it is not doing anything presently

    With(
     {
     wList:
     Sort(
     'Exclusion List',
     Title
     )
     },
     LastN(
     wList,
     CountRows(wList - 20) 
     )
    )

     

    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

  • Verified answer
    Kirah Profile Picture
    72 on at

    Hello,

    @WarrenBelz  Thanks for your input..

    I actually ended up with something like this in the end.

     

    With(
    {
    wList:
    FirstN(Sort('Nominal Risk Exclusion List', Title),32)
    },
    Filter(
    wList, Not(Title in FirstN(Sort('Nominal Risk Exclusion List', Title),20).Title)
    )
    )

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

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 329 Most Valuable Professional

#2
11manish Profile Picture

11manish 209 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 179

Last 30 days Overall leaderboard