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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Filter a galley by use...
Power Apps
Unanswered

Filter a galley by user- Power App

(0) ShareShare
ReportReport
Posted on by

I am looking to filter a Power App Galley by the current user. I have a SharePoint list that contains the email address of everyone who will be using this power app. It is assumed that the user did not create the data in the Sharepoint list. The Sharepoint list has over 4,000 records, so any current solution I have doesn't work. 

 

Does anyone know how to filter a gallery pulling for a large SharePoint list by the user, where the user is not the creator of the data in the SharePoint???

Categories:
I have the same question (0)
  • Pstork1 Profile Picture
    68,707 Most Valuable Professional on at

    1) Store the Current user email in a variable using Set(currentUser, User().Email)

    2) Filter the gallery based on some field that matches the current user email.  I'm assuming this is where you say the list contains the email address of everyone.

     

    The question is what field do you want to filter on since you can't use Created By if the user didn't create the item in SharePoint.

  • AN-23071134-0 Profile Picture
    on at

    Thank you for your response. 

     

    I have a field in my SharePoint list called "Email" which I would like to filter by. The Goal is when the user logs in, the list in the gallery is filtered by that users email. The Gallery should display only the row in the SharePoint associated with that matching email. 

  • Pstork1 Profile Picture
    68,707 Most Valuable Professional on at

    Then store the user's email as I mentioned and Filter the Items property of the gallery using the Email column is equal to the CurrentUser variable.

  • AN-23071134-0 Profile Picture
    on at

    Thank you again!

     

    What would the formula for the filter be? This is what I am currently using and it is not returning any values: 

    Filter('Employees', currentUser = 'Email') 

     

    The SP list is named "Employees" and the column on that list with the email addresses is "Email". 

    Do you see my error?  

  • Pstork1 Profile Picture
    68,707 Most Valuable Professional on at

    The condition is backwards and you need to set the value of CurrentUser. Also double check on the column name.  If it doesn't have a space then it probably won't use single quotes.

     

    Set(currentUser, User().Email);
    Filter('Employees', Email = currentUser );

     

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard