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

SP online list - Person or Group - Mulitple selection is set to Yes.

Hi,

I have below SP online list. In Name column Mulitple selection is set to Yes.

Column Type

Title       Single line of text            

Name    Person or Group

 

SP list ItemSP list Item

 

SelectedItem is a collection in powerapps, it contains sharepoint Item.

 

people3.PNG

 

PowerApps CollectionPowerApps Collection

 

  1. How do I show comma separated Display Names in label. I am Not able to write a formula using Concat. Name column table is confusing.
  2. Since it is in a table format I am not able to it display list content Gallery either.
1 ACCEPTED SOLUTION

Accepted Solutions

Looking at your screenshots I think the collection is called SelectedItem and it only has one row. The column in the collection that has the user names is "Name".  If that is correct then the formula would look like this:

 

Left(Concat(First(SelectedItem).Name, DisplayName & "; "), Len(Concat(First(SelectedItem).Name, DisplayName & "; "))-2)



--------------------------------------------------------------------------------
If this post helps answer your question, please click on “Accept as Solution” to help other members find it more quickly. If you thought this post was helpful, please give it a Thumbs Up.

View solution in original post

5 REPLIES 5
Super User II
Super User II

This assumes the values are in a como box called DataCardValue13.  
Example:
Left(Concat(DataCardValue13.SelectedItems, DisplayName & "; "), Len(Concat(DataCardValue13.SelectedItems, DisplayName & "; "))-2)

In this example we are concatenating the display name of the selected items in the combo box into a string separated by a semi colon. Then we are cleaning up the string by removing the trailing semi colon.



--------------------------------------------------------------------------------
If this post helps answer your question, please click on “Accept as Solution” to help other members find it more quickly. If you thought this post was helpful, please give it a Thumbs Up.

Hi Jeff, Values are not in the combobox. Values are in the collection. I have one more snapshot in original message for clarity. 

Looking at your screenshots I think the collection is called SelectedItem and it only has one row. The column in the collection that has the user names is "Name".  If that is correct then the formula would look like this:

 

Left(Concat(First(SelectedItem).Name, DisplayName & "; "), Len(Concat(First(SelectedItem).Name, DisplayName & "; "))-2)



--------------------------------------------------------------------------------
If this post helps answer your question, please click on “Accept as Solution” to help other members find it more quickly. If you thought this post was helpful, please give it a Thumbs Up.

View solution in original post

Hi @Jeff_Thorpe 

That is correct.

Left(Concat(First(SelectedItem).Name, DisplayName & "; "), Len(Concat(First(SelectedItem).Name, DisplayName & "; "))-2)

This is working perfectly fine.

 

Could you please also help me in displaying list contents in gallery without use of Collection?

 

This worked in gallery!! Thanks a lot.

Left( Concat(ThisItem.Name, DisplayName & "; ") , Len(Concat(ThisItem.Name, DisplayName & "; "))-2)

people - gallery.PNG

 

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

News & Announcements

Community Blog

Stay up tp date on the latest blogs and activities in the community News & Announcements.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Community Highlights

Community Highlights

Check out the Power Platform Community Highlights

Top Solution Authors
Top Kudoed Authors
Users online (9,155)