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 based on person/group column

(0) ShareShare
ReportReport
Posted on by 14

Hi all,

    Here's an issue I've been stuck on for a few days now.

 

I am trying to filter a gallery by the current user where the current user's name is contained in a person/group column in a list. There can be more than one name in this column entry though so I cannot use =. I have tried using the "in" function but that gets a delegation warning. Here's a better glimpse at what I'm trying to do:

 

List:

Course name                   Mentors

CourseA                           UserA

CourseB                           UserA UserB

 

In the powerapp:

(for userA)

"Courses I can mentor"

Gallery:

CourseA

CourseB

 

I've tried lookup and filter functions and here's the closest I've gotten

Filter('Course Catalogue', currentUser in "Mentors") which returns a delegation warning since the data types dont match.

Tried currentuser.email .fullname .text, with no result.

I already have my OnStart: Set(currentUser, User().Email) if that is your first question. 

 

Any help would be appreciated, thanks

 

Categories:
I have the same question (0)
  • Prabhakar_S Profile Picture
    735 Moderator on at

    Hi @nodice ,

     

    Please try this formula,

     

    Filter('Course Catalogue', Mentors.DisplayName = currentUser.FullName) 

     

  • nodice Profile Picture
    14 on at

    Im getting a delegation warning for the mentors.displayname, an incompatible type for the = function, and an improper use of "." for the FullName. That goes away if I remove the full name aspect though.

     

    I also tried this: Filter('Course Catalogue', currentUser in Mentors.DisplayName) but get a delegation warning and it doesnt return any values

     

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 March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 536

#2
WarrenBelz Profile Picture

WarrenBelz 426 Most Valuable Professional

#3
Haque Profile Picture

Haque 305

Last 30 days Overall leaderboard