cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Helper III
Helper III

Filter gallery on mutil select field

Hi Community,

I have a sharepoint list with a people field AssignedTo with multi select enabled.
How exactly can I filter a Gallery based on currentUser (=User()) in AssignedTo?

Thanks!
Bart

1 ACCEPTED SOLUTION

Accepted Solutions

@BClouded 
This would FILTER down on the Open status first and then apply the current user status.   This would successfully avoid delegation problems if the Open tasks are less than 2,000 records.

 

 

Filter(Filter(Tasks, Status.Value = "Open"), User().Email in AssingedTo.Email)

 

---
Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

View solution in original post

3 REPLIES 3
Super User III
Super User III

@BClouded 

You can do it like this.

 

Filter(your_datasource_name, User().Email in AssignedTo.Email)

 

A delegation warning will appear but there's no way to remove it while multiple names are being stored inside the AssignedTo field.  You would have to create a separate name for each column to successfully deal with delegation and I could show you how.  It just depends on whether that's important to you. 

 

---
Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

Thank you!
I'll try that first thing tomorrow.
My datasource will ultimately reach above 2000 records. So delegation is an important issue here.
But I can apply a second filter on Status.  eg. The Status = "Open" Tasks will never reach more then 2000.

I wonder is there a difference between:  
Filter(Tasks, Status.Value = "Open", User().Email in AssignedTo.Email) and
Filter(Tasks, User().Email in AssingedTo.Email, Status.Value = "Open")

Let's assume I have 5000 tasks, 2500 assigned to current user but only 200 Open Tasks. Can simply the order in the Filter statement make a difference?

Thanks
Bart

 

@BClouded 
This would FILTER down on the Open status first and then apply the current user status.   This would successfully avoid delegation problems if the Open tasks are less than 2,000 records.

 

 

Filter(Filter(Tasks, Status.Value = "Open"), User().Email in AssingedTo.Email)

 

---
Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

View solution in original post

Helpful resources

Announcements
News & Announcements

Community Blog

Stay up tp date on the latest blogs and activities in the community News & Announcements.

Power Apps Community Call

Power Apps Community Call- January

Check out the Power Apps Community Call for January 2021

PP Bootcamp Carousel

Global Power Platform Bootcamp

Dive into the Power Platform stack with hands-on sessions and labs, virtually delivered to you by experts and community leaders.

secondImage

Power Platform Community Conference On Demand

Watch Nick Doelman's session from the 2020 Power Platform Community Conference on demand!

Top Solution Authors
Top Kudoed Authors
Users online (5,103)