Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building 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???

  • Pstork1 Profile Picture
    65,928 Most Valuable Professional on at
    Re: Filter a galley by user- Power App

    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 );

     

  • AN-23071134-0 Profile Picture
    on at
    Re: Filter a galley by user- Power App

    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
    65,928 Most Valuable Professional on at
    Re: Filter a galley by user- Power App

    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
    Re: Filter a galley by user- Power App

    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
    65,928 Most Valuable Professional on at
    Re: Filter a galley by user- Power App

    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.

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,587 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,928 Most Valuable Professional

Leaderboard