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

 

people1.PNGSP list Item

 

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

 

people3.PNG

 

people2.PNGPowerApps 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
Highlighted
Super User
Super User

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

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
Super User

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

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.
pareshm
Frequent Visitor

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

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

Highlighted
Super User
Super User

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

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

pareshm
Frequent Visitor

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

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?

 

pareshm
Frequent Visitor

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

This worked in gallery!! Thanks a lot.

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

people - gallery.PNG

 

Helpful resources

Announcements
MBAS Gallery 2020

MBAS Gallery 2020

Watch Microsoft Business Applications Summit sessions on-demand.

firstImage

New Ranks and Rank Icons released on April 21!

The time has come: We are finally able to share more details on the brand-new ranks coming to the Power Apps Community!

Top Solution Authors
Top Kudoed Authors
Users online (6,171)