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 / Named Formulas and Fil...
Power Apps
Suggested Answer

Named Formulas and Filtering (Search Boxes)

(0) ShareShare
ReportReport
Posted on by 146
I'm having trouble wrapping my head around something with Named Formulas.
 
To keep things fast, I used to filter and load a small subset of records into a local collection via OnStart. I also have a search box to look into various fields for data. Also, I'd have various ClearCollect statements littered through the app where needed to keep the collection up to date after adding / changing records.
 
I figured Named Formulas would streamline this somewhat.  A single named formula defining the collection, and ClearCollects would be a thing of the past.  Adding / editing a record would show those changes immediately.  This part seems to work.
 
But, filtering a gallery's items that uses this Named Formula with a search box seems to cause delegation and sometimes other problems. Is this something that can't be done? If I set the collection via Onstart, the filtering works (typically using IN to look for text strings inside fields).  But, that same collection as a Named Formula plays havoc with filtering.
 
Anyone seen this? Anyone figure out how to have a Search Box with a Named Formula?
Categories:
I have the same question (0)
  • Suggested answer
    Gabriel G. Profile Picture
    831 Moderator on at
    When you want to use a text input to search inside a gallery, the best way to achieve this is to simply use a text input up to your gallery and then use Search on your gallery items using the text input as the value to search and columns inside the collection you want to seek in.
     
    Search(CustomGallerySample; TextInput1.Text;SampleHeading)
     
    ***Note: Use the classic TextInput. The newer one onChange trigger is different and touchy to use.***
     
    I suggest you to use a 'X' icon on the field to reset the text input.

    Otherwise, if you try to search for text using 'In', you gonna impact hardly delegation. If you go that way, I recommend to add a column on the collection to grab the related table which contains the text you want to search in before using it in a gallery.
     
    If your situation is not cover from this, please explain a bit more :).
    ___________________________________________________________________________

    Please click Does this answer your question 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 a Like.

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 471

#2
WarrenBelz Profile Picture

WarrenBelz 395 Most Valuable Professional

#3
11manish Profile Picture

11manish 279

Last 30 days Overall leaderboard