web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

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))
Categories:
I have the same question (0)
  • Verified answer
    RandyHayes Profile Picture
    76,297 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))
  • Verified answer
    RandyHayes Profile Picture
    76,297 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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 721 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 320 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard