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

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
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 (11,209)