cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Frequent Visitor

Filteringmultiple columns search

Hi,

 

I'm quite New to PowerApps and have a problem I really hope someone could help me with.

 

Building an app using a SharePoint list. I want to filter multiple columns based on my search Box and have tried many diffferent ways and looked up different solutions but can't get them to work. Would be really greatful if someone could help me out. This is how it looks:

 

Poweapps.png

1 ACCEPTED SOLUTION

Accepted Solutions

I have made a test with:

SortByColumns(Filter([@Powerapps], StartsWith(Title,TextSearchBox1.Text)
|| StartsWith(Lagerstatus, TextSearchBox1.Text) || StartsWith(Forhandler, TextSearchBox1.Text)),
"Title",If(SortDescending1,Descending,Ascending))
------------

If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.
 
 
 

View solution in original post

8 REPLIES 8
Super User III
Super User III

What is the actual issues, your formula doesnt indicate any error

------------

If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

With this formula it is only possible to search for Title. I would like the possibility to search for subtitle and body as well. 

Super User III
Super User III

Try;

 

SortByColumns(Filter([@Powerapps], StartsWith('Title',TextSearchBox1.Text) || StartsWith( SuntitleColumn, TextSearchBox1.Text || StartsWith(BodyColumn, TextSearchBox1.Text) ),Title,If(SortDescending1,Descending,Ascending))

 

Change BodyColumn and SuntitleColumn to the actual column names

------------

If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

I still can't get it to work.. 

 

SortByColumns(Filter([@Powerapps], StartsWith('Title',TextSearchBox1.Text) || StartsWith(Forhandler, TextSearchBox1.Text || StartsWith(Lagerstatus, TextSearchBox1.Text) ),Title,If(SortDescending1,Descending,Ascending))

 

There is something wrong where I put the color to red.. 

 

use:

SortByColumns(Filter([@Powerapps], StartsWith('Title',TextSearchBox1.Text) || StartsWith(Forhandler, TextSearchBox1.Text || StartsWith(Lagerstatus, TextSearchBox1.Text) ),"Title",If(SortDescending1,Descending,Ascending))

 

If there are errors, show a screenshot

------------

If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

Attached a screenshot of the error

I have made a test with:

SortByColumns(Filter([@Powerapps], StartsWith(Title,TextSearchBox1.Text)
|| StartsWith(Lagerstatus, TextSearchBox1.Text) || StartsWith(Forhandler, TextSearchBox1.Text)),
"Title",If(SortDescending1,Descending,Ascending))
------------

If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.
 
 
 

View solution in original post

Perfect!! Thank you so much!!

Helpful resources

Announcements
secondImage

Experience what’s next for Power Apps

Join us for an in-depth look at the new Power Apps features and capabilities at the free Microsoft Business Applications Launch Event.

Power Apps Community Call

Power Apps Community Call: February

Did you miss the call? Check out the Power Apps Community Call here.

New Power Super Users

Congratulations!

We are excited to announce the Power Apps Super Users!

New Badges

New Solution Badges!

Check out our new profile badges recognizing authored solutions!

Top Kudoed Authors
Users online (26,425)