cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
OsmandFernando
Post Prodigy
Post Prodigy

Gallery Filter based on a combo box while having a search box as well

Dear Experts, 

In my inventory , the inventory balance Gallary I want to have with 2 options. 

 

1. With a search box to search Items

2. With a combox filter to filter the gallery based on the Item type  

 

At the moment I am able to set only one set of formula to the Gallery Items Property

 

This is the formula I want to give, 

Sort(
If(IsBlank(ItemSearchText_2),ItemMaster,Search(AddColumns(ItemMaster,"ItemwithSpec",'Item and Spec'),ItemSearchText_2.Text,"ItemwithSpec")),
ID, Descending
);If(IsBlank(ComboBox1.Selected.Value),'ItemMaster',Filter(ItemMaster,'Type of Item'.Value=ComboBox1.Selected.Value))

 

There is no issue on the formulas , but I am not sure how we can use this

 

Capture.JPG

 

Osmand

1 ACCEPTED SOLUTION

Accepted Solutions

Thank you @eka24  I found my answer via this video, 

 

https://www.youtube.com/watch?v=kLGglidmPxg

View solution in original post

3 REPLIES 3
eka24
Super User
Super User

Please did you say the formula is working, if so what is your request. If you can explain further.

Besides i see two formulas
Sort(
If(IsBlank(ItemSearchText_2),ItemMaster,

Search(AddColumns(ItemMaster,"ItemwithSpec",'Item and Spec'),ItemSearchText_2.Text,"ItemwithSpec")),
ID, Descending
)

And

 

If(IsBlank(ComboBox1.Selected.Value),'ItemMaster',Filter(ItemMaster,'Type of Item'.Value=ComboBox1.Selected.Value))

 

------------

If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

@eka24  Thank you for your reply, 

 

What I want is to use both the Search box and dropdown filter with the same gallery. When search items using the search box gallery should filter, when I select the item type in the dropbox Gallery should filter. How can I do that?

 

Osmand

Thank you @eka24  I found my answer via this video, 

 

https://www.youtube.com/watch?v=kLGglidmPxg

Helpful resources

Announcements
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Community Call Conversations

Introducing the Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (2,544)