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 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:
I have the same question (0)
  • 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

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 739 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard