web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / filter items in a list...
Power Apps
Answered

filter items in a list based on current user in multi-selection person column

(0) ShareShare
ReportReport
Posted on by 22

Hi everyone,

 

seeking your support in my scenario, 

 

I have a gallery list from SharePoint, I want to filter the items based on the current logging-in user.

I made a Person column name (Employee) containing the users that I want to show that record, I made this in App onStart: 

Set(varUserEmail, User().Email);

in gallery items property:

Filter('Power List',Employee.Email = VarUserEmail)

 it works, but it does not work when I make the person column allow multi-selection.

I want to filter the items for multi-users.

Your support is much appreciated.

 

Categories:
  • NandiniBhagya20 Profile Picture
    4,667 Super User 2024 Season 1 on at

    Instead of equals to sign (=), use in 

    Filter('Power List', VarUserEmail in Employee.Email)
  • haider1 Profile Picture
    39 on at

    I did use in still items not showing up.

  • cwebb365 Profile Picture
    3,334 Most Valuable Professional on at

    Using 'in' works as it should. Need to make sure your onStart is working and the values are there in the list. However, you will have delegation issues when using in as it's not delegable in SharePoint. So if you ever have more than 500 records (2000 with setting) then you may not get results. 

  • haider96 Profile Picture
    22 on at

    I did make sure of onStart is working and I have a few records less than 100 and the error shows up.Screenshot 2022-08-09 234203.png

  • Verified answer
    cwebb365 Profile Picture
    3,334 Most Valuable Professional on at

    need to flip it. varUserEmail in Employee.Email

     

  • cwebb365 Profile Picture
    3,334 Most Valuable Professional on at

    But also if you get it work, you need to know that delegation will be an issue it that form and once you go over 500 (2k with setting upped) it will not return accurate results. If you know it'll never exceed that many, then you're good. 

  • haider96 Profile Picture
    22 on at

    Thank you so much.

    it works, the delegation is not big deal for me.

  • haider1 Profile Picture
    39 on at

    Hi,

    When I select a group email to show them the record like all staff should see that record, it's not works, it works only with  individual email.

     

    Thanks in advance.

  • cwebb365 Profile Picture
    3,334 Most Valuable Professional on at

    It won't do filter comparisons when using groups. If you only have a few groups, then you could add in some logic to allow everyone type groups. 

    Something Like 

    Filter('Power List', VarUserEmail in Employee.Email || "everyonegroup@domain.com" in Employee.Email)

    But you can't drill into these groups for membership. You would have a build some kind of security model where you extract the groups using a connector and build a list for each then Look through your groups etc. But that is a very complex scenario to try and figure out and get working. 

  • Spilari Profile Picture
    2 on at

    @haider96  Could you send me a screen of your field "Employee" on Sharepoint ? I'm having this exactly problem, but the solution is not working.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 232 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 202 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 122

Last 30 days Overall leaderboard