cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
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
Highlighted
Community Champion
Community Champion

Re: Filteringmultiple columns search

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
Highlighted
Community Champion
Community Champion

Re: Filteringmultiple columns search

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.

Highlighted
Frequent Visitor

Re: Filteringmultiple columns search

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

Highlighted
Community Champion
Community Champion

Re: Filteringmultiple columns search

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.

Highlighted
Frequent Visitor

Re: Filteringmultiple columns search

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

 
Highlighted
Community Champion
Community Champion

Re: Filteringmultiple columns search

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.

Highlighted
Frequent Visitor

Re: Filteringmultiple columns search

Attached a screenshot of the error

Highlighted
Community Champion
Community Champion

Re: Filteringmultiple columns search

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

Highlighted
Frequent Visitor

Re: Filteringmultiple columns search

Perfect!! Thank you so much!!

Helpful resources

Announcements
secondImage

Demo-Extravaganza 2020

Check out these cool Power Apps & vote on your favorite!

secondImage

Community Highlights

Check out whats happening in Power Apps

secondImage

Community User Group Member Badges

FIll out a quick form to claim your community user group member badge today!

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (9,255)