cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
MPtest1234
New Member

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

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

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

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

View solution in original post

Thanks - this is great

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

secondImage

Demo Extravaganza Winner Announcement

Please join us on Wednesday, July 21st at 8a PDT. We will be announcing the Winners of the Demo Extravaganza!

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Top Solution Authors
Top Kudoed Authors
Users online (4,345)