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

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
Highlighted
Community Support
Community Support

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

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
Highlighted
Super User
Super User

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

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
Highlighted
Community Support
Community Support

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

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

Highlighted
Community Support
Community Support

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

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
secondImage

Demo-Extravaganza 2020

Check out these cool Power Apps & vote on your favorite!

secondImage

Robotic Process Automation

Let's talk about the solution provided by Microsoft for Robotic Process Automation (RPA)

secondImage

Community Highlights

Check out whats happening in Power Apps

secondImage

Community User Group Member Badges

FIll out a quick form to claim your community user group member badge today!

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (8,449)