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
Power Platform Call June 2022 768x460.png

Power Platform Community Call

Join us for the next call on August 17, 2022 at 8am PDT.

Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

365 EduCon 768x460.png

Microsoft 365 EduCon

Join us for two optional days of workshops and a 3-day conference, you can choose from over 130 sessions in multiple tracks and 25 workshops.

Users online (1,569)