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 / Unable to Filter Galle...
Power Apps
Answered

Unable to Filter Gallery with Current Logged In User

(1) ShareShare
ReportReport
Posted on by 41

Hi all, 

 

Just starting to explore PowerApps for our needs, I'm having a bit of trouble filtering my gallery list to only show results for Current logged in user, I'm using a Sharepoint list btw

 

sharepointlist columns are as follows

employee_name (person/group)

session_date (date/time)

mentor_name (person/group)

 

Now I want to filter my gallery list to only show results specific to the current logged in user if he/she matches the records for employee_name or mentor_name

 

I tried a couple of suggestions in the web like adding this OnStart 

Set(varUserEmail, User().Email);

 

And adding this on the item formula

 

Filter('sharepointlist', employee_name.Email=varUserEmail)

 

Thank you in Advance!

Categories:
  • Verified answer
    WarrenBelz Profile Picture
    156,570 Most Valuable Professional on at

    HI @mangchaaBI ,

    You should just need

    Filter(
     'sharepointlist', 
     employee_name.Email=varUserEmail ||
     mentor_name.Email = varUserMail
    )

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

    Visit my blog Practical Power Apps

  • mangchaaBI Profile Picture
    41 on at

    Hi @WarrenBelz 

     

    Thanks for responding! tried the code and doesn't seem to show any result either, I can confirm that I do have 1 record under my current logged in user on the sharepoint list 

     

    Also I recreated a similar setup but using Excel Online as the datasource and I can get the filters to work though I used the User().Fullname filter in there because I have a column of Fullname list data.. 

    Anyway, still need some help if possible, thanks 

     

    mangchaaBI_0-1660786824476.png

     

  • mangchaaBI Profile Picture
    41 on at

    @WarrenBelz thanks for the assist, found a rather could be bug with the User().Email code and instead used 

     

    Set(varUserEmail, Office365Users.MyProfile().Mail) 

     

    And the filter code you provided is now working, thank you

  • WarrenBelz Profile Picture
    156,570 Most Valuable Professional on at

    @mangchaaBI ,

    Strange as I use User().Email extensively and have never had any issues - your code will work just as well however.

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 382 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 329

#3
WarrenBelz Profile Picture

WarrenBelz 187 Most Valuable Professional

Last 30 days Overall leaderboard