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

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

CarlHRVA
Level 8

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

Dual Super User
Dual Super User

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

CarlHRVA
Level 8

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")

Highlighted
Dual Super User
Dual Super User

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

CarlHRVA
Level 8

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

Thatworks! Thank you again Reza

CarlHRVA
Level 8

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
New Ranks and Rank Icons in April

'New Ranks and Rank Icons in April

Read the announcement for more information!

Better Together’ Contest Finalists Announced!

'Better Together’ Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

thirdimage

Community Summit North America

Innovate, Collaborate, Grow - The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Top Kudoed Authors
Users online (9,017)