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!

@CarlosFigueira 

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

Thank you!

Helpful resources

Announcements
October Events

Mark Your Calendars

So many events that are happening this month - don't miss out!

Ignite 2022

WHAT’S NEXT AT MICROSOFT IGNITE 2022

Explore the latest innovations, learn from product experts and partners, level up your skillset, and create connections from around the world.

Power Apps Africa Challenge 2022

Power Apps Africa Challenge

Your chance to join an engaging competition of Power Platform enthusiasts.

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