web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id : hshiQAJVwYOohZanK7/RKZ
Power Apps - Building Power Apps
Unanswered

delegation function

Like (0) ShareShare
ReportReport
Posted on 9 Oct 2023 09:11:00 by 372

Hi,

 

I have this formula:
Filter('WM FOR WELDER REGISTER', 'Grup Name Assembly' in SubAssy.Selected.Value, NoDrawing.Text in 'No Drawing')

I used 'in' function because the value in NoDrawing.Text is 1-0951, but in 'No Drawing' is 1-0951-1 or 1-0951-2. So, I used that function, but I got delegation. Is there any alternative function to replace 'in' in that formula? 

 

Notes. I used sharepoint list, I'm afraid if data more than 2000 will make error/ powerapps cant grab all my data.  

Thankyou!

  • iAm_ManCat Profile Picture
    18,206 Most Valuable Professional on 09 Oct 2023 at 10:04:43
    Re: delegation function

    Hey @firda59 

     

    I used the structure of your original code, which was checking the in function the other way, this resulted in an error.

    I have corrected my original answer to swap the two parameters around.

     

    You can also look at the function reference for the StartsWith function if you want to try and understand more

     

  • firda59 Profile Picture
    372 on 09 Oct 2023 at 09:54:56
    Re: delegation function

    @iAm_ManCat 

     

    I got this error:

    Part of this formula cannot be evaluated remotely. The 'StartsWith' function cannot be delegated if a field name appears in the second argument.

     

    Is there any other way? Thankyou

  • iAm_ManCat Profile Picture
    18,206 Most Valuable Professional on 09 Oct 2023 at 09:48:00
    Re: delegation function

    You can use the StartsWith function, however there is no easy way to get around delegation for the 'in' operator:

     

     

    Filter(
     'WM FOR WELDER REGISTER', 
     StartsWith('Grup Name Assembly', SubAssy.Selected.Value), 
     StartsWith('No Drawing', NoDrawing.Text)
    )

     

     

    Matt Devaney did a great post recently around using Power Automate to get around the delegation, so you can also look at that here if you want a more complicated solution:

    https://www.matthewdevaney.com/power-apps-search-a-sharepoint-list-no-delegation-warning/ 

     

    Cheers,

    Sancho

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Telen Wang – Community Spotlight

We are honored to recognize Telen Wang as our August 2025 Community…

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 637 Most Valuable Professional

#2
stampcoin Profile Picture

stampcoin 570 Super User 2025 Season 2

#3
Power Apps 1919 Profile Picture

Power Apps 1919 473

Loading complete