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! Smiley Happy

 

 

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
firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

SecondImage

PowerApps Monthly Community Call

Next Wednesday, September 18th at 8am PDT

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

FirstImage

Power Platform World Tour

Coming to a city near you

thirdimage

PowerApps Community User Group Member Badge

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

FourthImage

Join PowerApps User Group!!

Connect, share, and learn with your peers year-round

SecondImage

Power Platform Summit North America

Register by September 5 to save $200

Top Kudoed Authors
Users Online
Currently online: 33 members 4,629 guests
Please welcome our newest community members: