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 / Filter Gellery Then By...
Power Apps
Answered

Filter Gellery Then By Text Search

(0) ShareShare
ReportReport
Posted on by 99

Hi,

I have a gallery that filters my suppliers by there supplier code which works fine. I now need to add a search bar to my gallery so i can filter for individual invoices. 

 

I am using the following code but its not showing results. 

 

SortByColumns(Filter('Supplier Invoices',Title=Gallery2_16.Selected.'Supplier ID' && 'Invoice Number'=Search_1.Text),"ReceivedDate",Descending)

 

Any helps is appreciated.  

Categories:
  • Verified answer
    WarrenBelz Profile Picture
    156,748 Most Valuable Professional on at

    Hi @Barber_Chris ,

    Your text is valid if all the control references are.

    Try this first - make the Default of Search1 (I assume this is the name of your Text Control) "" (two double quotes or an empty string), then put this in the Items of the Gallery

    SortByColumns(
     Filter(
     'Supplier Invoices',
    	 Title=Gallery2_16.Selected.'Supplier ID' && 
    	 StartsWith('Invoice Number',Search_1.Text)
     ),
     "ReceivedDate",
     Descending
    )

    and see what happens when you start typing text (you should see all results filtered on Title before this)

     

    Please click Accept as solution 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 Thumbs Up.

  • Barber_Chris Profile Picture
    99 on at

    That worked a treat, thanks!

     

    If i wanted to search more columns from the same search box how could i modify it?

     

    Regards,

    Chris

  • WarrenBelz Profile Picture
    156,748 Most Valuable Professional on at

    Hi @Barber_Chris ,

    SortByColumns(
     Filter(
     'Supplier Invoices',
     Title=Gallery2_16.Selected.'Supplier ID' && 
     ( 
     StartsWith('Invoice Number',Search_1.Text) ||
     StartsWith(YourOtherField,Search_1.Text)
     )
     ),
     "ReceivedDate",
     Descending
    )

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 342 Super User 2026 Season 2

#2
M Bilal Khan Profile Picture

M Bilal Khan 283

#3
Mohsin Ali Profile Picture

Mohsin Ali 221

Last 30 days Overall leaderboard