cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Maexchen
Helper II
Helper II

filter a gallery by user from field with multiple entries

I have a powerapp that is connected to a Sharepoint list. One of the fields is a name entry that is autopopulated with the User information for the current user but it accepts multiple entries, i.e. you can add colleagues' names. 

I want to filter a Gallery, so that a user sees all the entries he is tagged in. Filtering by the person that created an item works, but how do I filter on another name field

 

If [any of the] names in [field] = current.user(name) 

 

what I can do is to filter on the "created by" field by using:

SortByColumns(Filter(Datatable,User().Email = 'Created By'.Email),"Created")

so how do I need to replace the expression 'created By'.Email to look through all the people in my other field and see if any of the emails matches?

1 ACCEPTED SOLUTION

Accepted Solutions
v-monli-msft
Community Support
Community Support

Hi @Maexchen ,

 

Is this field a multiple-select enabled person and group field? If so, then please use a formula like below:

Filter(ListName, User().FullName in MultiPerson.DisplayName)

 

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

4 REPLIES 4
Maexchen
Helper II
Helper II

can anyone at least point me into a direction. How I can search trough a field where the data is stored as tables? I know how to search through a list but not how to do this for individual fields.

v-monli-msft
Community Support
Community Support

Hi @Maexchen ,

 

Is this field a multiple-select enabled person and group field? If so, then please use a formula like below:

Filter(ListName, User().FullName in MultiPerson.DisplayName)

 

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

thanks, that's exactly what I needed! 

Hello,

 

I have tried to write this formula in my apps but it seems not to be working because of delegation warning. It basically says “delegation warning. The highlighted part of this formula might not work correctly on large data sets”.

The thing is, I am not really sure on how to create a delegation here. I have a SP list named Organization in  which I have “Departments” column and another multi-person column “Managers”. I would like to display a gallery filtered by managers (who can be responsible for several departments at the same time) so that when one clicks on a manager name they can see the list of department he or she is responsible for. 
My SP list is not that big but the multi person field is of course tagging people from my organization (with all information related to them).

 

that would be great if you could help me out , I’ve been struggling for so long with it!

 

Anna

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 (58,675)