cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
dgarcia
Frequent Visitor

Trying to Search a Filtered Gallery

I am trying to search a filtered Gallery and Both the Search and Filter functions work separately, not but when i put them together. (really new to Powerapps)

 

If(Filter('Part Add_1', Site.Value = Gallery10.Selected.Site) = true, Filter('Part Add_1', Value(Search_po.Text),"Process_x0023_")

This is what I am using. The Filter portion works, and the Search portion works, but when i try and put them together I get errors.  

1 ACCEPTED SOLUTION

Accepted Solutions

@dgarcia ,

Try this

Search(
   Filter(
      Part Add_1', 
      Site.Value = Gallery10.Selected.Site
   ), 
   Search_po.Text,
   "Process_x0023_"
)

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

View solution in original post

4 REPLIES 4
WarrenBelz
Super User
Super User

Hi @dgarcia ,

Firstly, this returns a Table, so how can it be true?

Filter(
  Part Add_1', 
   Site.Value = Gallery10.Selected.Site
)

Also I assume you are wanting to Search in the field Process_x0023_ with Search_po.Text - if so why have you wrapped it in Value() - Search only works on Text.

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

 

 

The first part, Is a gallery of a list, with the Site locations. See below blue button location. This alone works great.

 

Filter(
  Part Add_1', 
   Site.Value = Gallery10.Selected.Site
)

 

 The second part, searches/filters a separate list for the Process order number. Again, separately they work, together not so much.

 

Filter('Part Add_1', Value(Search_po.Text),"Process_x0023_")

 

malinhelp.jpg

 

@dgarcia ,

Try this

Search(
   Filter(
      Part Add_1', 
      Site.Value = Gallery10.Selected.Site
   ), 
   Search_po.Text,
   "Process_x0023_"
)

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

Well, I found out the issue with your help. It seems I can't search a Number type column. I changed the column to a text type and it works perfectly. Now i need to figure out how to make the numbers placed in the Process Order column tick up by the last input value.

Helpful resources

Announcements
PA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.

Microsoft Build 768x460.png

Microsoft Build is May 24-26. Have you registered yet?

Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.

May UG Leader Call Carousel 768x460.png

What difference can a User Group make for you?

At the monthly call, connect with other leaders and find out how community makes your experience even better.

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