cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
MPtest1234
Level: Power Up

Filtering Gallery with Multiple Dropdown Boxes from SharePoint List

Hi,

 

I have searched and found similar questions but still unable to fully understand how to best achieve this.

I have 10 dropdown boxes and need to be able to filter the gallery based on the selection of each of these dropdown boxes.

 

I can have a single filter working simply using the following:

 

Filter('SPListName',Dropdown1.Selected.Value in SPColumnName)

 

How do I build this out so the filter is respected by each selection - sorry I am new to this!

 

Thanks,

 

1 ACCEPTED SOLUTION

Accepted Solutions
Anonymous
Not applicable

Re: Filtering Gallery with Multiple Dropdown Boxes from SharePoint List

Hello @MPtest1234 :-)

 

In Filter statement, you can add every filter you want after your source, like this :

Filter(
    'Source',
    Condition1,
    Condition2,
    Condition3
)

For your needs, you have to do this :

Filter(
    'SPListName',
    SPColumn1 = Dropdown1.Selected.Value,
    SPColumn2 = Dropdown2.Selected.Value,
    SPColumn3 = Dropdown3.Selected.Value,
SPColumn4 = Dropdown4.Selected.Value,
SPColumn5 = Dropdown5.Selected.Value,
SPColumn6 = Dropdown6.Selected.Value,
SPColumn7 = Dropdown7.Selected.Value,
SPColumn8 = Dropdown8.Selected.Value,
SPColumn9 = Dropdown9.Selected.Value,
SPColumn10 = Dropdown10.Selected.Value )

I precise that Dropdowns can only get one selected value, so it's better here to put '=' than 'in'.
With ComboBox you have to use 'in' because the result of the selection is always a table.

 

I hope it will be helpful for you.

 

Best regards,

 

Louis

2 REPLIES 2
Anonymous
Not applicable

Re: Filtering Gallery with Multiple Dropdown Boxes from SharePoint List

Hello @MPtest1234 :-)

 

In Filter statement, you can add every filter you want after your source, like this :

Filter(
    'Source',
    Condition1,
    Condition2,
    Condition3
)

For your needs, you have to do this :

Filter(
    'SPListName',
    SPColumn1 = Dropdown1.Selected.Value,
    SPColumn2 = Dropdown2.Selected.Value,
    SPColumn3 = Dropdown3.Selected.Value,
SPColumn4 = Dropdown4.Selected.Value,
SPColumn5 = Dropdown5.Selected.Value,
SPColumn6 = Dropdown6.Selected.Value,
SPColumn7 = Dropdown7.Selected.Value,
SPColumn8 = Dropdown8.Selected.Value,
SPColumn9 = Dropdown9.Selected.Value,
SPColumn10 = Dropdown10.Selected.Value )

I precise that Dropdowns can only get one selected value, so it's better here to put '=' than 'in'.
With ComboBox you have to use 'in' because the result of the selection is always a table.

 

I hope it will be helpful for you.

 

Best regards,

 

Louis

MPtest1234
Level: Power Up

Re: Filtering Gallery with Multiple Dropdown Boxes from SharePoint List

Thanks - this is great

Helpful resources

Announcements
firstImage

PowerApps Monthly Community Call!

Join us next Wednesday for our Demo Extravaganza, October 16, 2019 8am PDT.

firstImage

Microsoft Business Applications Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

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: 195 members 4,038 guests
Please welcome our newest community members: