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 / Filtering current user...
Power Apps
Answered

Filtering current user in a multi-person column

(1) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi ,

 

I have a SP List with a person type column which may include multiple owners/persons in a single row. 

In my app gallery, I need to display only those rows in which the current user is one of the owners.

I am aware that I will hit the delgation warning if I try to check against a person field in SP List. 

Can someone suggest a workaround please?

 

Thanks.

Categories:
I have the same question (0)
  • Verified answer
    v-yuxima-msft Profile Picture
    Microsoft Employee on at

    Hi @Anonymous ,

     

    What formula expression do you use now?

    If you just get the warning it is just warning, not the error.

    More details about delegation:

    understand delegation in cavas-app

     

    I test on my side also has the delegation(as App test1):

    Filter('20190226filtermultipleperson',User().FullName in ShowColumns(PersonM,"DisplayName"))   (‘20190226filtermultipleperson’ is my sp list name)

    If you do not want the delegation warning, you could try to use the collection to collect your data firstly,and then filter.(As App test2)

     

    App test1:

    20190226Filtering current user in a multi-person column1.jpg

    App test2:

    Add one button control and then Button5.OnSelect: ClearCollect(test,'20190226filtermultipleperson')

    And then Gallery3.Items: Filter(test,User().FullName in PersonM.DisplayName)

    20190226Filtering current user in a multi-person column2.jpg

     

    Hope this can be helpful.

    Best Regards.

    Yumia

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    @v-yuxima-msft 

    Thank you Yumia.

    App2 works fine when I collect the records first. The gallery lists my records

    Filter(AllRecords,Me in SPOCs.Email)

    Allrecords is set to ClearCollect(AllRecords,'Logical Access')

     

    But App1 throws a deleagtion warning and no records are fetched.

    Filter('Exception Tracker',Me in ShowColumns(SPOCs,"Email")

    SPOCs is the mutiperson column in SP List and me is set to Office365Users.MyProfile().Mail

  • v-yuxima-msft Profile Picture
    Microsoft Employee on at

    Hi @Anonymous ,

     

    Could you please try to use User().Email to instead of Me in your  formula expression to test?

    Filter('Exception Tracker',Me in ShowColumns(SPOCs,"Email")

     

    Best Regards.

    Yumia

  • v-yuxima-msft Profile Picture
    Microsoft Employee on at

    Hi @Anonymous ,

     

    Filter('Exception Tracker',Me in ShowColumns(SPOCs,"Email")) (please do not miss ")")

     

    Best Regards.

    Yumia

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi @v-yuxima-msft 

     

    User().email will not work in my case because it fetched me email in a different format.

    User().email gives me <mailnickname or employee id>@domain.com

     

    In my SP persons column the email feteches me <firstname>.<lastname>@domain.com

     

     

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hey @v-yuxima-msft , it worked !!!

     

    Thank you very much Smiley Happy

    It wasn't working in the app but works when published.

  • v-yuxima-msft Profile Picture
    Microsoft Employee on at

    Hi @Anonymous ,

     

    You are welcome.

     

    Best Regards.

    Yumia

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    @v-yuxima-msft  The line is now giving me problems. My total records have exceeded 2000 in SP list and new records are no longer fetched due to the delegation issue. Please help.

  • v-yuxima-msft Profile Picture
    Microsoft Employee on at

    Hi @Anonymous ,

     

    Could you please change the value to 2000(File->App settings->Advanced settings)?

    20190326splimit.PNG

    And could you please reference:

    https://powerusers.microsoft.com/t5/General-Discussion/500-rows-limit/td-p/93826

     

    Hope this could be helpful.

     

    Best Regards.

    Yumia

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    @v-yuxima-msft , i tried your app test 2 method, there isn't any error or delegation warning but it isn't working for me,

    am trying to filter the project IDs for the current user in the dropdown from a multi person column, can you help me

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 430

#2
timl Profile Picture

timl 318 Super User 2026 Season 1

#3
Haque Profile Picture

Haque 314

Last 30 days Overall leaderboard