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 Browse Gallery ...
Power Apps
Answered

Filter Browse Gallery by current user email and gallery item

(0) ShareShare
ReportReport
Posted on by 78

I have a gallery that is populated by a sharepoint list. I want to filter the list by the info that is in the gallery and the user that logs in to view it. For instance, if the manager of a user views the gallery. I only want the manager to view the info that is for him. Right now I have this SortByColumns(Filter('Review Form', StartsWith(Reviewer_x0020_Name, TextSearchBox1.Text)), "Reviewer_x0020_Name", If(SortDescending1, Descending, Ascending)) which sorts by Reviewer name. If the Reviewer Name matches the Display Name of the logged in user then I only want it to show what is for the Reviewer.. Any help would be greatly appreciated. Thanks.

Categories:
I have the same question (0)
  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    Hi @ddas,

     

    There is a function User().FullName that will return the name of the current user.  If you set the filter on your gallery to: Filter('Review Form',Reviewer_x0020_Name=User().FullName)  I believe that should do it.  You don't need the sort because the gallery will only show one reviewer. The User() function can also show the email address: User().Email if you want to filter by that.

  • Meneghino Profile Picture
    6,949 on at

    Hi @ddas and @Drrickryp

    Please be aware of serious performance issues of the User() function when used for filtering etc.

    These can be overcome with something like this:

    https://baizini-it.com/blog/index.php/2017/08/29/powerapps-user-function-cache-current-user-onstart/

  • ddas Profile Picture
    78 on at

    Hi @Drrickryp

     

    Thanks for the quick response and the help. It doesn't seem to be working for me. I added what you suggested Filter('Review Form',Reviewer_x0020_Name=User().FullName) and my data in the gallery disappears and is empty? Any suggestions on why that might be happening?

  • ddas Profile Picture
    78 on at

    Hi @Meneghino,

     

    I understand and thanks for the info. 

  • Verified answer
    Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    @ddas,

     

    the gallery will be empty if your User().FullName does not exactly match a name in the Reviewer_x0020_Name column. Put a label on the screen and set its Text to User().FullName  and see if there isn't a Reviewer with the same name.

  • ddas Profile Picture
    78 on at

    @Drrickryp

     

    One of the letters was lower case in the name and that's why it wasn't populating. Thanks for the help. I really appreciate it. 

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 993

#2
Valantis Profile Picture

Valantis 675

#3
11manish Profile Picture

11manish 545

Last 30 days Overall leaderboard