cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
techtudoor
Resolver I
Resolver I

Filter Gallery if user() = userfield or managerfield

I have a PowerApp that filters the gallery view on the current user. On Start is set to Set(CurrentUser, User());. This part is working well. My gallery filters by Filter('DataSource', 'Contact'.Email = CurrentUser.Email). Now I want to add a filter that will also filter by this above filter OR Filter('DataSource', 'ContactManager'.Email = CurrentUser.Email). I need this to work if either one is true. Contact Manager will not be in the Contact field.

I am running into issues when trying to add the OR aspect. 

 

Thanks

1 ACCEPTED SOLUTION

Accepted Solutions
mdevaney
Super User III
Super User III

@techtudoor 

Here's my idea 🙂

Filter('DataSource', 'Contact'.Email = CurrentUser.Email Or 'ContactManager'.Email = CurrentUser.Email)

 

---
Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

View solution in original post

2 REPLIES 2
mdevaney
Super User III
Super User III

@techtudoor 

Here's my idea 🙂

Filter('DataSource', 'Contact'.Email = CurrentUser.Email Or 'ContactManager'.Email = CurrentUser.Email)

 

---
Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

View solution in original post

@mdevaney  that worked thank you. I had tried something like this, but was over thinking and my syntax was off.

 

  • Thank you very much

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

Power Apps Community Call

Monthly Power Apps Community Call

Did you miss the call?? Check out the Power Apps Community Call here!

secondImage

Experience what’s next for Power Apps

See the latest Power Apps innovations, updates, and demos from the Microsoft Business Applications Launch Event.

Power Platform ISV STudio

Power Platform ISV Studio

ISV Studio is the go-to Power Platform destination for ISV’s to monitor & manage applications post-AppSource publish.

Top Solution Authors
Top Kudoed Authors
Users online (3,054)