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 and search with...
Power Apps
Answered

Filter and search with two Input Text boxes

(0) ShareShare
ReportReport
Posted on by 48

Hi everyone,


We're having trouble combining different searches for different columns.


We have three columns (Title, Supplier and a combobox Status which is a lookupfield) which we need to get filtered/searched by combining all three, if possible.

 

It worked for two columns (title and status combobox) by using the following formula:

 

Search(

    Filter(

        VRT_WS_Artikels;

        IsBlank(ComboBox3.Selected) || IsEmpty(ComboBox3.Selected) || Categorie.Value = ComboBox3.Selected.Result

    );

    Txt_Zoeken_Title.Text;

    "Title"

)

 

However we can't seem to correctly add the search for 'Supplier', which is also just a single line of text field... We'd like to search the same way as for "Title", but we can't seem to combine them.

 

Thanks in advance!

Categories:
  • LaurensM Profile Picture
    12,516 Moderator on at

    Hi @AB_,

     

    You can search through multiple columns by adding additional columns at the end of the Search formula:

    Search(
     Filter(
     VRT_WS_Artikels;
     IsBlank(ComboBox3.Selected) || IsEmpty(ComboBox3.Selected) || Categorie.Value = ComboBox3.Selected.Result
     );
     Txt_Zoeken_Title.Text;
     "Title";
     "Supplier"
    )

     

    Is there any specific error you are receiving when trying the formula above?

     

    If this solves your question, would you be so kind as to accept it as a solution.

    Thanks!

  • AB-18111337-0 Profile Picture
    48 on at

    Hi Laurens,

     

    This works when using the same textinputfield, but in this case we have three columns which need to filter the gallery (so title, categorie (the combobox) and supplier). 

    We’re trying to filter the linked gallery with those three columns. So searching in the column ‘title’ with a textinputfield and filtering the column ‘categorie’ with the combobox works, but we can’t seem to add searching in the column ‘supplier’ with another  textinputfield (called Txt_Zoeken_Supplier) in this case.

     

    We thought that just adding ‘or Txt_Zoeken_Supplier.text;”Supplier”’ might do the trick, but unfortunately it doesn’t :(.

  • LaurensM Profile Picture
    12,516 Moderator on at

    Hi @AB_,

     

    In that case you would need an additional Search() formula enclosing the current one. Each Search() can accept multiple columns but only one text input:

     

    Search(
     Search(
     Filter(
     VRT_WS_Artikels;
     IsBlank(ComboBox3.Selected) || IsEmpty(ComboBox3.Selected) || Categorie.Value = ComboBox3.Selected.Result
     );
     Txt_Zoeken_Title.Text;
     "Title"
     );
     Txt_Zoeken_Supplier.Text;
     "Supplier"
    )

     

    If this solves your question, would you be so kind as to accept it as a solution.

    Thanks!

  • Verified answer
    LaurensM Profile Picture
    12,516 Moderator on at

    @AB_ 

     

    Alternatively, you could extend the filter() with an in operator - this results in cleaner code. If you use Dataverse, in is a delegable operator when comparing text fields. If you use SharePoint neither Search or in are delegable so the outcome would be the same:

     

    Filter(
     VRT_WS_Artikels;
     IsBlank(ComboBox3.Selected) || IsEmpty(ComboBox3.Selected) || Categorie.Value = ComboBox3.Selected.Result;
     Txt_Zoeken_Title.Text in "Title";
     Txt_Zoeken_Supplier.Text in "Supplier"
    );

     

    If this solves your question, would you be so kind as to accept it as a solution.

    Thanks!

  • AB-18111337-0 Profile Picture
    48 on at

    This works brilliant, thank you LaurensM!

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

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 395 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 328

#3
WarrenBelz Profile Picture

WarrenBelz 260 Most Valuable Professional

Last 30 days Overall leaderboard