Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building Power Apps
Answered

browsegallery1, filter for user in person column that allows multiple selections

(0) ShareShare
ReportReport
Posted on by 909 Super User 2024 Season 1

Hi,

 

Normally I filter my sp list in browsegallery like so - 'Assigned to'.Email = User().Email 

 

Assigned to is a person field

 

but what do I do if I want to find a user in a person field that allows selection of multiple people?  Is there any limitations to this?

 

i want to do something like this -

 

Filter([@testme_1],
('Assigned to'.Email = User().Email Or User().Email in ShowColumns('Delegated to1', "Email") Or User().Email in ShowColumns('Delegated to2', "Email") Or User().Email in ShowColumns('Delegated to3', "Email") Or User().Email in ShowColumns('Delegated to4', "Email") Or User().Email in ShowColumns('Delegated to5', "Email"))

 

 

But showcolumns doesnt really work I notice.

 

 

 

  • Verified answer
    LaurensM Profile Picture
    12,510 Super User 2025 Season 1 on at
    Re: browsegallery1, filter for user in person column that allows multiple selections

    @wonka1234,

     

    Certainly! Prefiltering is a great way to make your query partly delegable. As a small addition (optional), I prefer to add a With function and some inline comments to improve code readability - especially should the complexity increase later on.

     

    With(
     {
     //Prefilter via delegable condition (Output should not exceed Data Row Limit)
     wPrefilter: Filter(
     [@testme_1],
     Status = "In Progress" || Status = "NOT STARTED"
     )
     },
     //Apply non-delegable conditions on prefiltered dataset
     Filter(
     wPrefilter,
     'Assigned to'.Email = User().Email || User().Email in 'Delegated to1'.Email ||
     User().Email in 'Delegated to2'.Email Or User().Email in 'Delegated to3'.Email || User().Email in 'Delegated to4'.Email || User().Email in 'Delegated to5'.Email
     )
    )

     

     As a small note, the prefilter output should not exceed your Data Row Limit.

     

    I hope this helps!

  • wonka1234 Profile Picture
    909 Super User 2024 Season 1 on at
    Re: browsegallery1, filter for user in person column that allows multiple selections

    @LaurensM  thanks

    Can I do something like this - 

     

    Filter(Filter([@testme_1],

    (Status = "In Progress" Or Status = "NOT STARTED")),

    'Assigned to'.Email = User().Email || User().Email in 'Delegated to1'.Email ||
    User().Email in 'Delegated to2'.Email Or User().Email in 'Delegated to3'.Email || User().Email in 'Delegated to4'.Email || User().Email in 'Delegated to5'.Email

  • LaurensM Profile Picture
    12,510 Super User 2025 Season 1 on at
    Re: browsegallery1, filter for user in person column that allows multiple selections

    @wonka1234,

     

    You could use one of the following workarounds:

    • Create a flow that filters the data and returns the records to your app (see blog post by Matthew)
    • Create a collection larger than 2000 records and apply the filter to your collection

     

    If you don't want to use an indirect workaround, you may have to limit the data via a delegable query first. There are several options your could use, one example could be only displaying the records within a certain month or year (can be changed via a dropdown). This would be used as a prefilter to limit the amount of records returned.

     

    I hope this helps!

  • wonka1234 Profile Picture
    909 Super User 2024 Season 1 on at
    Re: browsegallery1, filter for user in person column that allows multiple selections

    @LaurensM  thanks! but i have more then 2k rows! what can I do?

  • LaurensM Profile Picture
    12,510 Super User 2025 Season 1 on at
    Re: browsegallery1, filter for user in person column that allows multiple selections

    Hi @wonka1234,

     

    You can use the following approach: 'User().Email in PersonColumn.Email'

    Filter(
     [@testme_1],
     'Assigned to'.Email = User().Email || User().Email in 'Delegated to1'.Email || 
     User().Email in 'Delegated to2'.Email Or User().Email in 'Delegated to3'.Email || User().Email in 'Delegated to4'.Email || User().Email in 'Delegated to5'.Email
    )

     

    Please note that this approach is non-delegable because of the 'in' operator. Your list should not exceed your Data Row Limit (see app settings, default 500 - max 2000).

     

    If this solves your question, would you be so kind as to accept it as a solution & give it a thumbs up.

    Thanks!

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,522 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,890 Most Valuable Professional

Leaderboard