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 / IN() function impactin...
Power Apps
Answered

IN() function impacting the app performance

(1) ShareShare
ReportReport
Posted on by Microsoft Employee

Hello

 

I am improving an App for field inspections that contains a Gallery with Filter functions and an IN function, here is the Items commend:

 

Filter(

   Filter('Neptune - Bulk Material handling',
   ('Asset Name' = dd_Nepassets.Selected.Result) && (DropdownBlock_3.Selected.Result = 'Block Name')
   ),
     TextSearch_3.Text in Title || TextSearch_3.Text in 'Location Detail'
  )

 

 

My objective is to highlight the last submitted record on the Gallery using a variable record created with LastSubmit function. My conclusion following long investigation is that the IN function is preventing from achieving my goal, looks like the new/edited records are excluded from the query so the default have no record to highlight.  

Any suggestions on how to deal with this?

 

Thanks 

Categories:
I have the same question (0)
  • Verified answer
    Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    @Anonymous 

    It depends on the data source and delegation. For example, SharePoint does not delegate the in operator. If you replace it with StartsWith(), the formula will execute faster and work with large datasets.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi @Drrickryp , Thanks for the quick reply. 

    It is relatively small SP list source. the dropdowns filters reduce it to less than 50 items. 

    I want to avoid using the StartWith() - it may be more disadvantage for this scenario.

     

     

  • iAm_ManCat Profile Picture
    18,256 Most Valuable Professional on at

    Hi, Agree with @Drrickryp about the delegation.

     

    Have you considered that the new/edited records are not showing in your filter because you have not used Refresh(DataSourceName) ? I would put that on the onVisible of that screen where you are filtering or on the actionable property of whatever is doing the new/edit functionality.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi @iAm_ManCat , It didn't help. 

    I probably will apply additional dropdowns to marrow the search. 

     

    Thanks for the assistance 

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 899

#2
Valantis Profile Picture

Valantis 571

#3
11manish Profile Picture

11manish 499

Last 30 days Overall leaderboard