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

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?

 

Highlighted
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
secondImage

New Return to Workplace

Reopen responsibly, monitor intelligently, and protect continuously with solutions for a safer work environment.

August 2020 CYST Challenge

Check out the winners of the recent 'Can You Solve These?' community challenge!

Experience what’s next for Power Apps

Join us for an in-depth look at the new Power Apps features and capabilities at the free Microsoft Business Applications Launch Event.

Check this Out

Helpful information

Featuring samples like Return to the Workplace and Emergency Response Applications

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Users online (3,493)