cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
bloodoff
Level 8

any way to replace "Filter" with "Search" when searching/filtering through Lookup field?

Simple example:

I have a list (TestApp) that has 2 columns: Title (Single line of text) and DepartmentName (Lookup to another List)

The goal is to have "Search" field that searches through both Titles and Deparments.

 

If I use Filter function, this one works just fine:

Filter(TestApp,StartsWith(Title,TextSearchBox1.Text)||StartsWith(DepartmentName.Value, TextSearchBox1.Text))

 

Q, is there a (simple) way to replace Filter function with Search function? Problem I'm having with Search function, I cannot select DepartmentName.Value, it's only allowing me to select "DepartmentName" with quotes and that's it.

PS. Search function works with Text fields right away but not with Lookups.

 

As always, thank you!

1 ACCEPTED SOLUTION

Accepted Solutions
bloodoff
Level 8

Re: any way to replace "Filter" with "Search" when searching/filtering through L

To answer my question, hopefully it will help someone:

Search(AddColumns(TestApp,"DepNames",DepartmentName.Value),TextSearchBox1.Text,"Title","DepNames")

View solution in original post

1 REPLY 1
bloodoff
Level 8

Re: any way to replace "Filter" with "Search" when searching/filtering through L

To answer my question, hopefully it will help someone:

Search(AddColumns(TestApp,"DepNames",DepartmentName.Value),TextSearchBox1.Text,"Title","DepNames")

View solution in original post

Helpful resources

Announcements
thirdimage

Power Apps Super User Class of 2020

Check it out!

thirdimage

Power Apps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

SecondImage

Difinity Conference

The largest Power BI, Power Platform, and Data conference in New Zealand

Top Solution Authors
Top Kudoed Authors (Last 30 Days)
Users online (5,295)