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 Call June 2022 768x460.png

Power Platform Community Call

Join us for the next call on August 17, 2022 at 8am PDT.

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.

Users online (4,363)