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 / Search function in gal...
Power Apps
Answered

Search function in gallery and possible filter

(0) ShareShare
ReportReport
Posted on by 6

Hi

 

I have developed a Power App with a gallery and a working search function.

 

The current working formula used is : 

Search('Letters Forecast',SearchBox2.Text,"ProductCode","Form_x002f_LetterName")

 

However, I want to add another filter to this search. I don't wont the gallery to show any results where the Progress Status box says "Completed", as they may be various submissions with the same product code or letter name.

 

I have made the following formula as a starter but it does not seem to be acceptable by Power Apps: 

Search(Filter('Letters Forecast', If('Progress Status'="Completed",true,false)),'Letters Forecast',SearchBox2.Text,"ProductCode","Form_x002f_LetterName")

 

All these formulas have been entered in the 'Items' section of the gallery, but im not sure this is the right area for this additional request

Categories:
  • Verified answer
    zmorek Profile Picture
    3,272 on at

    You say you don't want it to show records with a status of "Completed" - what other statuses are there? How many records are there? You might run into a delegation issue if we take the "easy way" out by filtering on Status <> "Completed".

     

    Your formula would look something like this:

     

    Search(
    Filter(
    'Letters Forecast', 
     Or(
     'Progress Status' = "In Progress",
     'Progress Status' = "Pending"
     )
    ),
    SearchBox2.Text,
    "ProductCode",
    "Form_x002f_LetterName"
    )
    
    

     

  • Wozzer985 Profile Picture
    6 on at

    Thank you so much, I just needed to tweak it a little to get it to work, as the formula produced a blank Gallery.

     

    Thank you for getting me there.

     

    This was the final formula:

    Search( Filter( 'Letters Forecast', Not(Or('Progress Status'. Value ="Completed"))), SearchBox2.Text, "ProductCode", "Form_x002f_LetterName")

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

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 226 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 191 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 167

Last 30 days Overall leaderboard