cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Helper V
Helper V

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
Check this Out

Helpful information

Featuring samples like Return to the Workplace and Emergency Response Applications

August 2020 Community Challenge: Can You Solve These?

August 2020 Community Challenge: Can You Solve These?

We're excited to announce our first cross-community 'Can You Solve These?' challenge!

secondImage

Return to Workplace

Reopen responsibly, monitor intelligently, and protect continuously with solutions for a safer work environment.

secondImage

Super Users Coming in August

We are excited for the next Super User season.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (7,882)