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
PA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

R2 (Green) 768 x 460px.png

Microsoft Dynamics 365 & Power Platform User Professionals

DynamicsCon is a FREE, 4 half-day virtual learning experience for 11,000+ Microsoft Business Application users and professionals.

Users online (8,287)