cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
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

Highlighted
Post Patron
Post Patron

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

Highlighted
Post Patron
Post Patron

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

Highlighted
Post Patron
Post Patron

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

Thatworks! Thank you again Reza

Highlighted
Post Patron
Post Patron

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
August 2020 Community Challenge: Can You Solve These?

August 2020 Community Challenge: Can You Solve These?

We're excited to announce our first cross-community 'Can You Solve These?' challenge!

secondImage

Return to Workplace

Reopen responsibly, monitor intelligently, and protect continuously with solutions for a safer work environment.

secondImage

Super Users Coming in August

We are excited for the next Super User season.

secondImage

Community User Group Member Badges

FIll out a quick form to claim your community user group member badge today!

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

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