cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
radtadBrad
Helper I
Helper I

Filter gallery by number, text, and lookup columns using one searchbox

I have a gallery that I want to filter using a text box that searches multiple columns to find what I'm looking for. The problem that I have is one column has text(description) one column has numbers(order number) and one column has a lookup(customers). How can I do this? Below is a picture of what i have so far.  2017-07-19_23h45_15.jpgThanks!

1 ACCEPTED SOLUTION

Accepted Solutions
v-yamao-msft
Community Support
Community Support

Hi radtadBrad,

 

According to your description, I create an app based on a SharePoint list.

 

There are Text, Number, Lookup column in the list.

 

The code I am using is:

SortByColumns(If(IsBlank(TextSearchBox1.Text),ProjectEmail,Filter(ProjectEmail,StartsWith(TextSearchBox1.Text,Title)||Value(TextSearchBox1.Text)=WunderlistID||TextSearchBox1.Text=AA.Value)),"ID",If(SortDescending1,Ascending,Descending))

In my case, WunderlistID is the Number column, I use a Value function to convert a string of text to a number.

 

More details about Value function, please check this documentation:
https://powerapps.microsoft.com/en-us/tutorials/function-value/

 

Hope this could be a reference for you. Please try it on your side.

 

 

Best regards,
Mabel Mao

Community Support Team _ Mabel Mao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
v-yamao-msft
Community Support
Community Support

Hi radtadBrad,

 

According to your description, I create an app based on a SharePoint list.

 

There are Text, Number, Lookup column in the list.

 

The code I am using is:

SortByColumns(If(IsBlank(TextSearchBox1.Text),ProjectEmail,Filter(ProjectEmail,StartsWith(TextSearchBox1.Text,Title)||Value(TextSearchBox1.Text)=WunderlistID||TextSearchBox1.Text=AA.Value)),"ID",If(SortDescending1,Ascending,Descending))

In my case, WunderlistID is the Number column, I use a Value function to convert a string of text to a number.

 

More details about Value function, please check this documentation:
https://powerapps.microsoft.com/en-us/tutorials/function-value/

 

Hope this could be a reference for you. Please try it on your side.

 

 

Best regards,
Mabel Mao

Community Support Team _ Mabel Mao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Helpful resources

Announcements
User Group Leader Meeting January 768x460.png

Calling all User Group Leaders!

Don't miss the User Group Leader meetings on January, 24th & 25th, 2022.

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Top Solution Authors
Top Kudoed Authors
Users online (1,525)