cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
AdamGill
Resolver II
Resolver II

Gallery Items Filter based on Named Users

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!

1 ACCEPTED SOLUTION

Accepted Solutions
Nogueira1306
Super User
Super User

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!

View solution in original post

2 REPLIES 2
Nogueira1306
Super User
Super User

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!

Thank you - this worked without causing delegation issues!

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

May UG Leader Call Carousel 768x460.png

June User Group Leader Call

Join us on June 28 for our monthly User Group leader call!

PA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.

PA.JPG

New Release Planning Portal (Preview)

Check out our new release planning portal, an interactive way to plan and prepare for upcoming features in Power Platform.

Top Solution Authors
Users online (2,054)