cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
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
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
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
New Badges

New Solution Badges!

Check out our new profile badges recognizing authored solutions!

New Power Super Users

Congratulations!

We are excited to announce the Power Apps Super Users!

Power Apps Community Call

Power Apps Community Call: February

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

Microsoft Ignite

Microsoft Ignite

Join digitally, March 2–4, 2021 to explore new tech that's ready to implement. Experience the keynote in mixed reality through AltspaceVR!

Top Solution Authors
Top Kudoed Authors
Users online (74,980)