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 Galerry with bu...
Power Apps
Answered

filter Galerry with button and text box

(0) ShareShare
ReportReport
Posted on by

Hi,
I have a gallery that uses a Sharepoint database, in the database there is a column called "Status" with New and Done values, I have two buttons to filter by new and done, but I also want to include a text box to filter by other columns "Customers", "References".

this is my code:

SortByColumns(Filter('Solicitudes Expres';
 StartsWith(Estatus;EstIng2)); "Estatus"; If(SortDescending3;Descending;Ascending))
Captura9.PNG
Categories:
I have the same question (0)
  • Verified answer
    RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @CarlosN 

    Give this formula a try:

    SortByColumns(
     Filter(
     AddColumns('Solicitudes Expres'; "SearchText"; Customers & References); 
     StartsWith(Estatus;EstIng2) &&
     yourTextInput.Text in SearchText 
     ); 
     "Estatus"; 
     If(SortDescending3;Descending;Ascending)
    )

     

    Substitute the name of your Text box in the "yourTextInput" in the formula and it should give you what you are looking for.

     

    I hope this is helpful for you.

  • Verified answer
    CarlosN Profile Picture
    on at

    I don't know where the code error is.

    SortByColumns(Filter(AddColumns('Solicitudes Expres';"Cliente"; Cliente & Referencia);
     StartsWith(Estatus;EstIng2) && TextSearchBox1.Text in Cliente); "Estatus"; If(SortDescending3;Descending;Ascending))
    Captura10.PNG
  • Verified answer
    RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @CarlosN 

    You already have a column called Cliente.  You can't add a column with the same name.  

    Please make it a different name:

    SortByColumns(
     Filter(
     AddColumns('Solicitudes Expres'; "Buscar"; Cliente & Referencia);
     StartsWith(Estatus;EstIng2) && 
     TextSearchBox1.Text in Nuscar
     ); 
     "Estatus"; 
     If(SortDescending3;Descending;Ascending)
    )

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!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 525 Most Valuable Professional

#2
Haque Profile Picture

Haque 308

#3
Kalathiya Profile Picture

Kalathiya 234 Super User 2026 Season 1

Last 30 days Overall leaderboard