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 / Multiple TextInput sea...
Power Apps
Answered

Multiple TextInput search on a single column

(0) ShareShare
ReportReport
Posted on by 10

What I want to do Is type a search word in two textInputs and seach on one column

 

TextInput1  "Oil" & TextInput2 "Essential"

Results from Description column

 

Lavendar Oil

Oil
Essential

Essential Bath Balm

 

Anxious to hear from anyone that can help
Thanks
Ted

 

 

MultipleText search-One Column.png
Categories:
I have the same question (0)
  • Jeff_Thorpe Profile Picture
    6,085 Super User 2024 Season 1 on at

    What is the data source (SQL, Excel, SharePoint, CDS or a Collection)? Also is the goal to return only records that have the value of TextInput1 or TextInput2 in the description column?

  • RezaDorrani Profile Picture
    12,145 on at

    Hi @tbowland 

     

    Search function only allows one search term

     

    you could try Filter(PADEVICES,TextInput1.Text in column  || TextInput2.Text in column )

     

    Regards,

    Reza Dorrani

     

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

  • tbowland Profile Picture
    10 on at

    The data ultimately comes from a sql server but will be brought in to a collection for possible offline use.


    Reza's " Filter(PADEVICES,TextInput1.Text in column  || TextInput2.Text in column ) " works but not exactly they way I need.
    This solution kind of works like a AND where I need a AND/OR meaning the results need to show items matching TextInput1 AND/OR TextInput2
    Ted

    Still working on it

  • tbowland Profile Picture
    10 on at

    Wow that works but not exactly they way I need.

    This solution kind of works like a AND where I need a AND/OR. meaning the results need to show items matching TextInput1 AND/OR TextInput2

    Thanks

    Ted

  • Verified answer
    dev_fridden Profile Picture
    9 on at

    With Filter() you can use a combination of && and || to make a match

     

    Like this:

     

    Filter(List1;(TextInput1.Text in Text1 && TextInput1.Text in Text2) || (TextInput1.Text in Text1) || (TextInput1.Text in Text2))

     

    Hope this helps,

    Fredrik

     

     

  • RezaDorrani Profile Picture
    12,145 on at

    Hi @tbowland 

     

    you can change the filter creiteria to combine it with || and && based on your requirements

     

    Regards,

    Reza Dorrani

     

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

     

     

  • tbowland Profile Picture
    10 on at

    Thanks
    This is what I settled on
    If( IsBlank(txt_Search2.Text),Filter(Col_AllProduct,txt_Search1.Text in DESCRIPTION),Filter(Col_AllProduct,txt_Search1.Text in DESCRIPTION && (txt_Search2.Text in DESCRIPTION)))

     

    Thanks also to  @RezaDorrani   and @Jeff_Thorpe 

     

    Ted

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 Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 463

#2
WarrenBelz Profile Picture

WarrenBelz 364 Most Valuable Professional

#3
11manish Profile Picture

11manish 275

Last 30 days Overall leaderboard