Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building 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:
  • Verified answer
    RandyHayes Profile Picture
    76,287 Super User 2024 Season 1 on at
    Re: filter Galerry with button and text box

    @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)
    )
  • Verified answer
    CarlosN Profile Picture
    on at
    Re: filter Galerry with button and text box

    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,287 Super User 2024 Season 1 on at
    Re: filter Galerry with button and text box

    @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.

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,524 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,906 Most Valuable Professional

Leaderboard