cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Dual Super User II
Dual Super User II

Re: Help with search on gallery that is filtered with multiple dropdowns

Hi @CarlHRVA 

 

so did the forumla work?

check the Thisitem. for labels and see the options (use intellisence)

 

Regards,

Reza Dorrani

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

Highlighted
Post Partisan
Post Partisan

Re: Help with search on gallery that is filtered with multiple dropdowns

Nothing is showing up in the gallery at all and each label has the same error. It seems like the ThisItem operator is not recognized now?

 

Capture.PNGCapture.PNGCapture.PNG

 

 

 

 

 

 

 

In the formula I get this error after replacing the commas with semicolons. All of the other operators I've tried break the formula just like the commas do.

Capture.PNG

Highlighted
Dual Super User II
Dual Super User II

Re: Help with search on gallery that is filtered with multiple dropdowns

Hi @CarlHRVA 

 

can you paste the formula you are using for the gallery here

Highlighted
Post Partisan
Post Partisan

Re: Help with search on gallery that is filtered with multiple dropdowns

Items= If(!IsBlank(Dropdown4.Selected.Result),Search(Filter('Collections DB','Customer Name' = Dropdown4.Selected.Result),SearchBox.Text, "Customer_x0020_Name", "Title", "Invoice_x0020_Number", "HC_x0020_Type", "Balance_x0020_Amount","Contact_x0020_Name_x0020_and_x00"));
If(!IsBlank(Dropdown5.Selected.Result), Search(Filter('Collections DB', 'Hotel Name' = Dropdown5.Selected.Result),SearchBox.Text, "Customer_x0020_Name", "Title", "Invoice_x0020_Number", "HC_x0020_Type", "Balance_x0020_Amount","Contact_x0020_Name_x0020_and_x00"));
If(!IsBlank(Dropdown6.Selected.Result), Search(Filter('Collections DB', Collector = Dropdown6.Selected.Result),SearchBox.Text, "Customer_x0020_Name", "Title", "Invoice_x0020_Number", "HC_x0020_Type", "Balance_x0020_Amount","Contact_x0020_Name_x0020_and_x00"));
Search('Collections DB', SearchBox.Text, "Customer_x0020_Name", "Title", "Invoice_x0020_Number", "HC_x0020_Type", "Balance_x0020_Amount","Contact_x0020_Name_x0020_and_x00")

Dual Super User II
Dual Super User II

Re: Help with search on gallery that is filtered with multiple dropdowns

@CarlHRVA 

 

try this

 

If(!IsBlank(Dropdown4.Selected.Result),Search(Filter('Collections DB','Customer Name' = Dropdown4.Selected.Result),SearchBox.Text, "Customer_x0020_Name", "Title", "Invoice_x0020_Number", "HC_x0020_Type", "Balance_x0020_Amount","Contact_x0020_Name_x0020_and_x00"),
If(!IsBlank(Dropdown5.Selected.Result), Search(Filter('Collections DB', 'Hotel Name' = Dropdown5.Selected.Result),SearchBox.Text, "Customer_x0020_Name", "Title", "Invoice_x0020_Number", "HC_x0020_Type", "Balance_x0020_Amount","Contact_x0020_Name_x0020_and_x00"),
If(!IsBlank(Dropdown6.Selected.Result), Search(Filter('Collections DB', Collector = Dropdown6.Selected.Result),SearchBox.Text, "Customer_x0020_Name", "Title", "Invoice_x0020_Number", "HC_x0020_Type", "Balance_x0020_Amount","Contact_x0020_Name_x0020_and_x00"),
Search('Collections DB', SearchBox.Text, "Customer_x0020_Name", "Title", "Invoice_x0020_Number", "HC_x0020_Type", "Balance_x0020_Amount","Contact_x0020_Name_x0020_and_x00"))))

View solution in original post

Highlighted
Post Partisan
Post Partisan

Re: Help with search on gallery that is filtered with multiple dropdowns

Thatworks! Thank you again Reza

Highlighted
Post Partisan
Post Partisan

Re: Help with search on gallery that is filtered with multiple dropdowns

Hey Reza, 

 

Hopefully this is okay the post this question on the same thread as before. I was trying to use the same formula you helped me with earlier but switching my datasource to an Excel table instead but I've run into some issues. 

 

In the actual formula I get an error that the 'Search' function has some invalid arguments. The labels in the gallery show the same error as before where ThisItem name isn't valid/not recognized. Formula below. Thanks for your help.

 

If(!IsBlank(ddCustomerNameCollector.Selected.Result),Search(Filter(Table1,'CUSTOMER NAME' = ddCustomerNameCollector.Selected.Result),SearchBox.Text, "CUSTOMER NAME", "HOTEL NAME", "INVOICE NUMBER", "Type9", "BALANCE AMOUNT"),
If(!IsBlank(ddHotelNameCollector.Selected.Result), Search(Filter(Table1, 'HOTEL NAME' = ddHotelNameCollector.Selected.Result),SearchBox.Text, "CUSTOMER NAME", "HOTEL NAME", "INVOICE NUMBER", "Type9", "BALANCE AMOUNT"),
If(!IsBlank(ddCollectorNameCollector.Selected.Result), Search(Filter(Table1, COLLECTOR = ddCollectorNameCollector.Selected.Result),SearchBox.Text, "CUSTOMER NAME", "HOTEL NAME", "INVOICE NUMBER", "Type9", "BALANCE AMOUNT",),
Search(Table1, SearchBox.Text, "CUSTOMER NAME", "HOTEL NAME", "INVOICE NUMBER", "Type9", "BALANCE AMOUNT"))))

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Tech Marathon

Maratón de Soluciones de Negocio Microsoft

Una semana de contenido con +100 sesiones educativas, consultorios, +10 workshops Premium, Hackaton, EXPO, Networking Hall y mucho más!

Top Solution Authors
Top Kudoed Authors
Users online (7,196)