cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
esjimenezp
Advocate III
Advocate III

Use Search and Filter into a Gallery

Hi Community,

 

I would like to use the function Search and Filter into a Gallery, the idea is to use a Text filter and by default into the Gallery, filtering by Priority & Value fields, I use the next formula only to filter by default in the Gallery, but the Search I don't know how to combine with the Filter function

//Search('Project Inventory', txt_SearchProjectName.Text, "ProjectName")  
Filter('Project Inventory', Priority.Value = "High", Value.Value = "High")

esjimenezp_0-1660326055731.png

 

The Gallery works with the filter but no with the Search function, any help that would be great, thanks.

 

Kind regards 👋

1 ACCEPTED SOLUTION

Accepted Solutions
Drrickryp
Super User
Super User

@esjimenezp 

PowerApps executes commands from inside out.  The following formula filters the datasource and reduces to a table that can be searched. 

Search(
        Filter(
                 'Project Inventory', Priority.Value = "High", Value.Value = "High"
         ), txt_SearchProjectName.Text, "ProjectName"
)

View solution in original post

3 REPLIES 3
Drrickryp
Super User
Super User

@esjimenezp 

PowerApps executes commands from inside out.  The following formula filters the datasource and reduces to a table that can be searched. 

Search(
        Filter(
                 'Project Inventory', Priority.Value = "High", Value.Value = "High"
         ), txt_SearchProjectName.Text, "ProjectName"
)

Drrickryp
Super User
Super User

@esjimenezp 

If this answered your question, please mark it solved so others can find it.

it works, thanks for your help @Drrickryp 

 

Kind regards 👋

Helpful resources

Announcements
Power Apps Africa Challenge 2022

Power Apps Africa Challenge

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

Super User 2 - 2022 Congratulations

Welcome Super Users

The Super User program for 2022 - Season 2 has kicked off!

September Events 2022

Check out all of these events

Attend in person or online, there are incredible conferences and events happening all throughout the month of September.

Government Carousel

New forum: GCC, GCCH, DoD - Federal App Makers (FAM)

In response to the unique and evolving requirements of the United States public sector, Microsoft has created Power Apps US Government.

Users online (4,262)