cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
llacefield
Level: Powered On

Filter Gallery Based on Multiple Text Boxes

I have the below PowerApp that I would like to have the functionality of filter the list based on the four text boxes. The "Estimator" search box isn't greatly important but would like to figure out. It's linked to a SharePoint Person/Group column and the syntax for that is much more difficult. With the exclusion of the "Estimator" filed, I'd think it would be something similar to this but I'm getting nowhere.

 

SortbyColumns(
Filter(
Filter(
Filter(Estimates,
StartsWith('Bid Number', txt_Search.Text)
),
StartsWith(Customer, txt_Search_2.Text)
),
StartsWith('Site/Location', txt_Search_3.Text)
), "Title", Descending)

 

 

PowerApp.png

 

 

Any help would greatly be appreciated. 

1 ACCEPTED SOLUTION

Accepted Solutions
PowerApps Staff CarlosFigueira
PowerApps Staff

Re: Filter Gallery Based on Multiple Text Boxes

Since the Estimator is a Person/Group field, you need to access the member of the person object that you want (for example, the DisplayName). In your case, you can try something like the expression below (notice that you can use multiple conditions in a single Filter expression):

SortbyColumns(
    Filter(
        Estimates,
        StartsWith('Bid Number', txt_Search.Text),
        StartsWith(Customer, txt_Search_2.Text),
        StartsWith('Site/Location', txt_Search_3.Text),
        StartsWith(Estimator.DisplayName, txt_Search_4.Text)),
  "Title", Descending)

Hope this helps!

View solution in original post

2 REPLIES 2
PowerApps Staff CarlosFigueira
PowerApps Staff

Re: Filter Gallery Based on Multiple Text Boxes

Since the Estimator is a Person/Group field, you need to access the member of the person object that you want (for example, the DisplayName). In your case, you can try something like the expression below (notice that you can use multiple conditions in a single Filter expression):

SortbyColumns(
    Filter(
        Estimates,
        StartsWith('Bid Number', txt_Search.Text),
        StartsWith(Customer, txt_Search_2.Text),
        StartsWith('Site/Location', txt_Search_3.Text),
        StartsWith(Estimator.DisplayName, txt_Search_4.Text)),
  "Title", Descending)

Hope this helps!

View solution in original post

llacefield
Level: Powered On

Re: Filter Gallery Based on Multiple Text Boxes

@CarlosFigueira 

Perfect!!! I was approaching it as if it needed to be a nested filter formula.

Thank you!

Helpful resources

Announcements
thirdimage

Power Automate 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

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

Top Kudoed Authors
Users Online
Currently online: 458 members 5,510 guests
Please welcome our newest community members: