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

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

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

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

@CarlosFigueira 

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

Thank you!

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

News & Announcements

Community Blog

Stay up tp date on the latest blogs and activities in the community News & Announcements.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Community Highlights

Community Highlights

Check out the Power Platform Community Highlights

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