cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
TomLu1231
Frequent Visitor

Filter the Gallery based on Multiple Controls

Dear experts, 

I have a shrepoint list which has following fields:

  • Item ID: this is text type filed.
  • Request Type: this is a choice type filed (A, B, C)
  • Workflow Status: this is a choice type field (New, In Progress, Implemented)
  • Assigned to: this is a choice type field (Sandy,Tom, Simith)

Please find following as example:

Item IDRequest TypeWorkflow StatusAssigned to
RT222114ANewSandy
RT223311BIn ProgressTom
RT312233CImplementedTom

 

I created a gallery to dispaly the list itmes. I wish to eanble the user to filter the gallery based on the intersection of these three fields by using a drop donw control. (E.g. if the user choose Request Type =B and Workflow = In Progress, the gallery should show RT223311)

FilterSS.png

Is it possible to achieve that?

Many thanks!

1 ACCEPTED SOLUTION

Accepted Solutions
v-sheyu-msft
Community Support
Community Support

Hi @TomLu1231,

Do you want to filter the gallery based on the selected values of any two dropdowns ?

 

I made a test.

I created a SharePoint list named ‘test2.

 

9.PNG
Set Items property of the gallery to :

Filter(test2,If(IsBlank(Dropdown1.Selected.Value),true,Dropdown1.Selected.Value in 'Request Type'.Value) && If(IsBlank(Dropdown2.Selected.Value),true,Dropdown2.Selected.Value in 'Workflow Status'.Value) && If(IsBlank(Dropdown3.Selected.Value),true,Dropdown3.Selected.Value in 'Assigned to'.Value))

Regards,

Eason

 

Community Support Team _ Eason YU
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
v-sheyu-msft
Community Support
Community Support

Hi @TomLu1231,

Do you want to filter the gallery based on the selected values of any two dropdowns ?

 

I made a test.

I created a SharePoint list named ‘test2.

 

9.PNG
Set Items property of the gallery to :

Filter(test2,If(IsBlank(Dropdown1.Selected.Value),true,Dropdown1.Selected.Value in 'Request Type'.Value) && If(IsBlank(Dropdown2.Selected.Value),true,Dropdown2.Selected.Value in 'Workflow Status'.Value) && If(IsBlank(Dropdown3.Selected.Value),true,Dropdown3.Selected.Value in 'Assigned to'.Value))

Regards,

Eason

 

Community Support Team _ Eason YU
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Thanks - this was very helpful!

Helpful resources

Announcements
PA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

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.

PowerPlatform 768x460.png

Microsoft Learn

Check out our new Discover Your Career Path blog post series and get all the details.

Users online (2,505)