cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Vaibhav_kaulkar
Regular Visitor

undefined

Dear community, I am trying to filter data based on drop down (values -All and manager names) and show data in the gallery.

 

This should query sql and when All is selected, I must check if the data is not from entire view or table but to the records having managers names. In short, managers collection must be evaluated against sql records. Can someone suggest any approach? 

1 ACCEPTED SOLUTION

Accepted Solutions
v-jefferni
Community Support
Community Support

Hi @Vaibhav_kaulkar ,

 

Do you mean that when you select "All" in the dropdown, you want to filter out the records that manager column values ​​are included in the managers collection from the table?

 

If so, please try:

If(Dropdown.Selected.Value = "ALL", 
   Filter(Table, ManagerName in ManagerCollection.ManagerName)),
   Filter(Table, ManagerName = Dropdown.Selected.Value)
)

 

Hope this helps.

 

Best regards,

Community Support Team _ Jeffer Ni
If this post helps, then please consider Accept it as the solution to help the other members find it.

View solution in original post

1 REPLY 1
v-jefferni
Community Support
Community Support

Hi @Vaibhav_kaulkar ,

 

Do you mean that when you select "All" in the dropdown, you want to filter out the records that manager column values ​​are included in the managers collection from the table?

 

If so, please try:

If(Dropdown.Selected.Value = "ALL", 
   Filter(Table, ManagerName in ManagerCollection.ManagerName)),
   Filter(Table, ManagerName = Dropdown.Selected.Value)
)

 

Hope this helps.

 

Best regards,

Community Support Team _ Jeffer Ni
If this post helps, then please consider Accept it as the solution to help the other members find it.

View solution in original post

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.

R2 (Green) 768 x 460px.png

Microsoft Dynamics 365 & Power Platform User Professionals

DynamicsCon is a FREE, 4 half-day virtual learning experience for 11,000+ Microsoft Business Application users and professionals.

Users online (1,481)