cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
llacefield
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
CarlosFigueira
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
CarlosFigueira
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
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Top Solution Authors
Top Kudoed Authors
Users online (3,036)