cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Kristine_s
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
eka24
Super User III
Super User III

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

Kristine_s
Frequent Visitor

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

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

Kristine_s
Frequent Visitor

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.

Kristine_s
Frequent Visitor

Attached a screenshot of the error

eka24
Super User III
Super User III

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

Kristine_s
Frequent Visitor

Perfect!! Thank you so much!!

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

secondImage

Demo Extravaganza is Back!

We are excited to announce that Demo Extravaganza for 2021 has started!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Power Apps June 2021

June Power Apps Community Call

Don't miss the call this month on June 16th - 8a PDT

Top Solution Authors
Top Kudoed Authors
Users online (53,916)