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 / Doubt with in operator
Power Apps
Answered

Doubt with in operator

(0) ShareShare
ReportReport
Posted on by 15

Goodmorning,

Thank you in advance for the help

I'm working with a Gallery and I need multiple filters on it,

I managed to make everything without delegation warning but I have a doubt

This is the code:

 

 

 

 

 

Filter(Opened_Files; 
 Autore in Security.Title; 
 Or(IsBlank(CB_Sito.Selected); //handle no selected values to give back every item
 IsEmpty(CB_Sito.Selected);
 Sito=CB_Sito.Selected.Value);
 StartsWith(Nome;TI_SearchDoc.Text);
 Or(IsBlank(CB_Rep.Selected); //handle no selected values to give back every item
 IsEmpty(CB_Rep.Selected);
 Reparto=CB_Rep.Selected.Value)
 )

 

 

 

 

 

 

 

There is a delegation warning using the "in" operator in the second line

The question is:

If the table "Security.title" will never exceed the 500 items, will it be okay for the table "Opened_Files" if there will be over 2k items? I mean, which one has to be less then 500/2k items? The first? The second? Or both?

If both needs to be under the limit, is there any way to bypass it and make it to be without delegation warning?

Another quesiton is:

I need another field to check with the in with the same table, 

Thank you again

-Marian

Categories:
I have the same question (0)
  • Ethan_009 Profile Picture
    4,838 Moderator on at

    Hi @Marianr99 ,

     

    Although the App doesn't know how many records are expected, it was always assume the worst case. 

    Your "in" operator gets multiple result as outcome therefore, its understood that Records can exceed 2000 delegation Row Limit. 

    Well, If let's consider another point where your App is maxed out with other records summing to 2000 already. Now, your App has to get new records for the Table you want, here your App will struggle to fetch all records and might result in missing data. 

     

    There are few ways to ensure App runs smoothly in future by developing it early.

    1 of the efficient way which I use is Pagination. Reference YouTube Link

    This can handle large data easily.

     

    But if you have handled things properly in App with increase filters then not to worry.

     

    Hope this helps 

  • Pstork1 Profile Picture
    69,547 Most Valuable Professional on at

    If the Security.Title list will never have more than 500 records you can ignore the delegation warning. It only applies in this case to that list since that is where the 'in' operator is being used.

  • Marianr99 Profile Picture
    15 on at

    Thank you for the answer, so if the Opened_Files doc library has more then 2k items there is no problem? Sorry if I ask it again, this is really important for me

  • Marianr99 Profile Picture
    15 on at

    Thank you for the quick answer

  • Verified answer
    Pstork1 Profile Picture
    69,547 Most Valuable Professional on at

    That shouldn't be a problem because you are using a single value from the doc library to see if it is "in" the other list.  Its the target list that has to be below the data row limit not the library in this case.

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 Apps

#1
Valantis Profile Picture

Valantis 474

#1
Valantis Profile Picture

Valantis 474

#3
WarrenBelz Profile Picture

WarrenBelz 375 Most Valuable Professional

Last 30 days Overall leaderboard