cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Joshy
Level: Powered On

Multiple Gallery filters to show all results when blank or when 'All' is selected from a dropdown

 

Hi everyone,

 

I have managed to use the below formula to filter a gallery by two separate dropdowns and allow for a search across multiple columns in the data.

 

SortByColumns(
    Search(
        (Filter(AllJobs, Dropdown3.Selected.Value in Area,Dropdown6.Selected.Value in Job_x0020_Stage)),
        textinput4.text,
        "Address",
        "AWMS",
        "S_x002f_O_x0020_ID",
        "Design_x0020_Type"),
    "Address",
    Descending)

I'm looking to achieve either of the two results and need assistance.(No.2 would provide a better end user result)

  1. When Dropdown3 and/or Dropdown6 are blank show all results under both or either of the two filters. - I will still need to be able to use the search filter.
  2. If i had items in the drop downs such as 'All Areas' and 'All Stages' the formula would filter to show all results under both or either of the two filters when they are selected. - Again I will still need to be able to use the search filter.

Hopefully that makes sense! Thanks in advance for any help! 🙂

 

 

2 REPLIES 2
Community Support Team
Community Support Team

Re: Multiple Gallery filters to show all results when blank or when 'All' is selected from a dropdow

Hi @Joshy,

 

Have you tried to filter the table returned by the search function?

Formula should be in the format below:

SortByColumns(
   Filter(
        Search(AllJobs,
                   textinput4.text,
                   "Address",
                   "AWMS",
                   "S_x002f_O_x0020_ID",
                   "Design_x0020_Type"),
        Dropdown3.Selected.Value in Area,
        Dropdown6.Selected.Value in Job_x0020_Stage)),
    "Address",
    Descending)

Regards,

Michael

Community Support Team _ Michael Shao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Highlighted
Joshy
Level: Powered On

Re: Multiple Gallery filters to show all results when blank or when 'All' is selected from a dropdow

Hi @v-micsh-msft,

 

Thanks for the suggestion, I have added the formula but it doesn't achieve what i'm trying to do which is to have the capability to view all the potential values in dropdown3 and/or dropdown 6 at the same time.

 

I have seen formulas achieve this by selecting the dropdown as blank and using the 'If' and 'IsBlank' functions but i haven't had any luck building this into my formula.

 

Regards,

 

Josh

Helpful resources

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

thirdimage

Power Apps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Join THE global Microsoft Power Platform event series

Attend for two days of expert-led learning and innovation on topics like AI and Analytics, powered by Dynamic Communities

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

thirdimage

Microsoft Business Applications Virtual Launch

Join us for the Microsoft Business Applications Virtual Launch Event on Thursday, April 2, 2020, at 8:00 AM PST.

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 (8,539)