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 list by curr...
Power Apps
Answered

Filtering list by currrent user not working

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

I am just looking for what I thought would be a simple way of filtering by logged on user. I found this page that said to create a data connection to Office 365 users and add the following but it is not working. I am not married to the this current way of doing it so if you can suggest a better way to it please let me know.

 

This is suppose to get my profile display name and ensure that it equals the field in Officer Name showing only my entries into the system.

 

SortByColumns(Filter('Individual-Time', Office365Users.MyProfile().DisplayName = Officer_x0020_Name, StartsWith(ComplianceAssetId, TextSearchBox1.Text)), "ComplianceAssetId", If(SortDescending1, Descending, Ascending))
Categories:
I have the same question (0)
  • Verified answer
    v-yamao-msft Profile Picture
    Microsoft Employee on at

    Hi msmith,

     

    Please take my code for a reference.

     

    In my list, there is a Person or Group column named “Approved by”. I created connections to both SharePoint list and Office 365 users.

     

    On the gallery, set the Items property of the gallery as:

    SortByColumns(Filter(List1,Office365Users.MyProfile().DisplayName=Approved_x0020_By_x003f_.DisplayName),"Title",If(SortDescending1,Descending,Ascending))

     

    Then only the items that the display name of column “Approved by” are equal to current user’s will be shown on the app.

     

    Please try it on your side and feel free reply if you need more help.

     

    Best regards,
    Mabel Mao

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Here is a capture of what happens. I must just have this in the wrong format or something.

    Screen-Shot-Powerapp.jpg

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

    Hi msmith,

     

    What’s the column type of “Officer_x0020_Name”? Is it a Person or Group column or a Text column?


    If it is a Person or Group column, you may configure it likes Officer_x0020_Name.DisplayName, while if it is a Text column, Officer_x0020_Name should be ok.


    Please try it on your side.

     


    Best regards,
    Mabel Mao

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    That is what I missed, thank you!!

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

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 345 Most Valuable Professional

#2
11manish Profile Picture

11manish 207 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 177

Last 30 days Overall leaderboard