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 / Gallery Items Filter b...
Power Apps
Answered

Gallery Items Filter based on Named Users

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

I have a Gallery which contains 6 x manually-applied (lowercase) email address Fields from an SQL Data Source - each for various user roles of a Task. I only want to display the Items in the Gallery if the logged in user's email address appears in any of those 6 Fields. I have tried a multitude of ways to achieve this, including;

 

Adding OnStart Set(USEREMAIL,Lower(User().Email))

 

...then applying a Filter to the Items in the Gallery...

 

Filter(DATATABLE,USEREMAIL in Allocated_To || Delegated_To || Managed_By || Administered_By || Governed_By || Reporting_Manager)

 

This does not work and I feel like there is something more fundamental that I could use (such as "CountRows") however, each permutation presents it's own issues (delegation, etc.) I was hoping that this something that someone has successfully achieved?

 

Thanks!

Categories:
I have the same question (0)
  • Verified answer
    Nogueira1306 Profile Picture
    7,390 Super User 2024 Season 1 on at

    Try this:

     

    Filter(DATATABLE,USEREMAIL in Allocated_To || USEREMAIL in Delegated_To || USEREMAIL in Managed_By || USEREMAIL in Administered_By ||  USEREMAIL in Governed_By || USEREMAIL in Reporting_Manager)

     

    If you need additional help please tag me in your reply and please like my reply.
    If my reply provided you with a solution, pleased mark it as a solution ✔️!

    Best regards,

    Gonçalo Nogueira

    Check my LinkedIn!

    Buy me a coffee!

    Check my User Group (pt-PT)!

    Last Post on Community

    My website!

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Thank you - this worked without causing delegation issues!

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

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 352 Most Valuable Professional

#2
11manish Profile Picture

11manish 192

#3
Valantis Profile Picture

Valantis 128

Last 30 days Overall leaderboard