cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Dave9
Frequent Visitor

Distinct list of People from Multi Selection People Picker

Hello, 

 

Ive see several posts about people pickers, but my sharepoint list allows for multiple people to be selected. which means that the people picker column is a column of tables. 

 

I want to create a list view where the items are the distinct people from the people picker column.  AND I want to filter the sharepoint list so that you can see which items from the sharepoint list each person was involved with. 

 

Im not sure that this is possible based on my current experimentation, but I thought Id ask.

 

Thanks!

 

EDIT:    For others who may be interested, my actual solution used Ungroup and then GroupBy.

 

ClearCollect(colAuditors, GroupBy(Ungroup(dataSource, "GroupedColumnName"),"DisplayName","Email","Picture", "GroupedData"))

 

thank you @mdevaney  for your help with this solution!

1 ACCEPTED SOLUTION

Accepted Solutions

@Dave9 
This will give you a list of all the people's names as plain text but I am not sure if that is what you wanted.

 

ClearCollect(colUniqueNames, Distinct(Ungroup(your_datasource_name, your_column_name), DisplayName))  

 

---
Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."  

View solution in original post

3 REPLIES 3
mdevaney
Super User
Super User

@Dave9 

Please provide an example of what the resulting table should look like.

Dave9
Frequent Visitor

Sharepoint Item 1:  people picker:  Dave, Joe, Bob

Sharepoint Item 2:  people picker:  Dave, Bob, Mary

Sharepoint Item 3:  people picker:  Mary, Joe

 

Powerapps List screen Items:  Dave, Joe, Bob, Mary

 

the people picker uses O365 people, so each person is a record. 

@Dave9 
This will give you a list of all the people's names as plain text but I am not sure if that is what you wanted.

 

ClearCollect(colUniqueNames, Distinct(Ungroup(your_datasource_name, your_column_name), DisplayName))  

 

---
Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."  

Helpful resources

Announcements
PA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.

Microsoft Build 768x460.png

Microsoft Build is May 24-26. Have you registered yet?

Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.

May UG Leader Call Carousel 768x460.png

What difference can a User Group make for you?

At the monthly call, connect with other leaders and find out how community makes your experience even better.

Top Solution Authors
Top Kudoed Authors
Users online (2,799)