cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Mgodby
Post Patron
Post Patron

Filter an entity using multiple values in a gallery or another entity?

Is there any way to filter an entity using say multiple values in a gallery or entity. Like for example, I want to filter Users to only return data where the 'Full Name' matches the 'Name' of another entity or gallery?

 

I have an entity here that has a field called 'Copy To Full Name'

copytofullname.png

Is there anyway to filter Users so it only returns data where it's 'Full Name' matches the 'Copy To Full Name' field?

1 ACCEPTED SOLUTION

Accepted Solutions
v-monli-msft
Community Support
Community Support

Hi @Mgodby ,

 

According to my test, it cannot be achieved directly, but you can try the workaround below:

1. Add a button, set its OnSelect property to:

 ClearCollect(C1,Distinct('Purchase Requisition Copy Tos','Copy To Fulll Name'))

2. Set below formula in the Items property of your Users gallery:

Filter(Users,'Full Name' in C1.Result)

 

Regards,

Mona

 

Community Support Team _ Mona Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
PowerAddict
Super User II
Super User II

Are you trying to get a filtered list of users where the full name is in 'Purchase Requisiton Copy Tos'.'Copy to Full Name'?

If so, can you try

Filter(Users, 'Full Name' in 'Purchase Requisiton Copy Tos'.'Copy to Full Name'

---
If you like this reply, please give kudos. And if this solves your problem, please accept this reply as the solution. Thanks!

Hardit Bhatia
https://thepoweraddict.com
v-monli-msft
Community Support
Community Support

Hi @Mgodby ,

 

According to my test, it cannot be achieved directly, but you can try the workaround below:

1. Add a button, set its OnSelect property to:

 ClearCollect(C1,Distinct('Purchase Requisition Copy Tos','Copy To Fulll Name'))

2. Set below formula in the Items property of your Users gallery:

Filter(Users,'Full Name' in C1.Result)

 

Regards,

Mona

 

Community Support Team _ Mona Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

v-monli-msft
Community Support
Community Support

Hi @Mgodby ,

 

Have you checked on this issue recently?

 

Regards,

Mona

Community Support Team _ Mona Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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

secondImage

Demo Extravaganza is Back!

We are excited to announce that Demo Extravaganza for 2021 has started!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Power Apps June 2021

June Power Apps Community Call

Did you miss the call? Check out the recording here!

Top Solution Authors
Top Kudoed Authors
Users online (19,577)