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 Pages / Question In regard of ...
Power Pages
Answered

Question In regard of Delegation + Performance need help

(1) ShareShare
ReportReport
Posted on by 19

Hi Guys,

 

I'm building a gallery that is being filtered by a combobox + a text box, the data comes from a Sharepoint list with around ~200 entries,  the filter is currently  working but it's giving a delegation warning and it's kinda laggy.  

 

 I've the print of the code that I'm using, can someone help me to build a more efficient code that doesnt run into delegation issues, and that the response is faster? It would be really appreciated!

 

Code:

Filter('Digital_Library_2.0';

(
IsEmpty(
localizar_catalog.SelectedItems.Result)

||
IsBlank(
localizar_catalog.SelectedItems.Result)

||

field_3 in localizar_catalog.SelectedItems.Result

)


&&
(
TextInput1_1.Text in Title
||
TextInput1_1.Text in field_1
||
TextInput1_1.Text in field_2
)

 

 

 

BrkProdig_0-1658719565371.png

 

Categories:
I have the same question (0)
  • fyamasaki Profile Picture
    7 on at

    I'm running into a similar issue, looking forward to knowing a workaround

  • BrkProdig Profile Picture
    19 on at

    Yes, I hope someone has a solution for this 

  • oliver.rodrigues Profile Picture
    9,482 Most Valuable Professional on at

    Hi, I would suggest posting this on the Power Apps/Canvas Apps forum: 

    Power Apps Community - Power Platform Community (microsoft.com)

     

  • ragavanrajan Profile Picture
    7,044 Most Valuable Professional on at

    Hi @WarrenBelz 

    This thread is for you.  Sorry, we don't have permission to move. 

    Please help. 

     

    Hope it helps. 
    ------------

    If you like this post, give it a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users to find it.

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

    Hi @BrkProdig ,

    Firstly, the in filter is simply not Delegable in SharePoint and each one of your filter criteria contains it, so there is no opportunity to "pre-filter" to improve this. However, if your list numbers are always going to be under your (maximum 2,000) Delegation limit, this will "mask" the issue (you will not get a warning, but the limit is still there) and possibly run a bit faster

    With(
     {wList: 'Digital_Library_2.0'};
     Filter(
     wList;
     (
     Len(localizar_catalog.Selected.Result) = 0 ||
     field_3 in localizar_catalog.SelectedItems.Result
     ) &&
     (
     TextInput1_1.Text in Title ||
     TextInput1_1.Text in field_1 ||
     TextInput1_1.Text in field_2
     )
     )
    )
    )

     

    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

     

  • BrkProdig Profile Picture
    19 on at

    Hi Warren! Thank you it worked!  😀

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 Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Pages

#1
omkarsupreme Profile Picture

omkarsupreme 47

#2
11manish Profile Picture

11manish 43

#3
Valantis Profile Picture

Valantis 37

Last 30 days Overall leaderboard