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 / Filter gallery by curr...
Power Apps
Unanswered

Filter gallery by current user

(0) ShareShare
ReportReport
Posted on by 8

HI!
I want the gallery in the app to only show the informartion typed in by the current user. 

Can i use this on the item property on the gallery? Filter('Timeregistrering'; User().Email = User().Email))

Thanks

Categories:
  • Shanescows Profile Picture
    2,218 Most Valuable Professional on at

    Can you explain a little better what you are trying to do? I am sure we can accomplish it I just don't want to steer you wrong because I am not exactly sure what you want.

     

    Does the gallery already contain a field with the user's email address that we can filter against?

    Did they just enter this info or could they have done it at any point?

     

    Shane

  • Tomjoh92 Profile Picture
    8 on at

    I'm trying to make an app where employees can register their work hours. They check in and out and provide some information. This goes back to my excel sheet and make a paycheck. 

    I want the employees to only see their own data, not all the others. 

    I've made a text box in the check in label with User().Email and that provides correct email without me typing it anywhere so i'm guessing it finds automatically when you sign up on powerapps on the phone. 

    When i tried to type function i suggested i didnt get any error messages, but its a bit hard to try it when i dont have acces to an another e-mail yet.

  • ThatAPIGuy Profile Picture
    925 on at

    Hi @Tomjoh92

     

    You will need to have a column in the excel sheet like "UserEmail" , where you will have to collect the User().Email, so every record that is created can be mapped to the user.

     

    Now when filtering you can use Filter('TimeRegistering',UserEmail=User().Email)

     

    To test it out, you can create some dummy records in the excel sheet some random email ids defined in the UserEmail column. This way, when you check in , you can see if all your records are shown or not.

     

    Hope this helps.!

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
11manish Profile Picture

11manish 394 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 328

#3
WarrenBelz Profile Picture

WarrenBelz 324 Most Valuable Professional

Last 30 days Overall leaderboard