cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Resolver I
Resolver I

Is it possible to count names in a multiple selection people picker?

I searched and didn't find any answers. There is a video for Infopath, but none for PowerApps. I wonder if it is possible to count names in a multiple selection people picker field in PowerApps. 

 

Thanks,

Pei Pei

2 ACCEPTED SOLUTIONS

Accepted Solutions
Highlighted
Power Apps
Power Apps

Re: Is it possible to count names in a multiple selection people picker?

You can use the CountRows function with the SelectedItems property of the picker as the parameter. For example, if your people picker is in a combobox named 'DataCardValue6', then you can use this expression in a label to display the number of selected names:

"People selected: " & CountRows(DataCardValue6.SelectedItems)

View solution in original post

Highlighted
Power Apps
Power Apps

Re: Is it possible to count names in a multiple selection people picker?

If you really need to store that number in your list, then you can add an additional column in the list, and update it anytime the list of selected people is changed.

View solution in original post

4 REPLIES 4
Highlighted
Power Apps
Power Apps

Re: Is it possible to count names in a multiple selection people picker?

You can use the CountRows function with the SelectedItems property of the picker as the parameter. For example, if your people picker is in a combobox named 'DataCardValue6', then you can use this expression in a label to display the number of selected names:

"People selected: " & CountRows(DataCardValue6.SelectedItems)

View solution in original post

Highlighted
Resolver I
Resolver I

Re: Is it possible to count names in a multiple selection people picker?

Thank you, Carlos. I just tested and it worked. What I am trying to do is to save the number in my SharePoint list. Should I create a field to store this number or do you have any suggestions on that?

 

Thanks again.

 

Pei

Highlighted
Power Apps
Power Apps

Re: Is it possible to count names in a multiple selection people picker?

If you really need to store that number in your list, then you can add an additional column in the list, and update it anytime the list of selected people is changed.

View solution in original post

Highlighted
Resolver I
Resolver I

Re: Is it possible to count names in a multiple selection people picker?

Thank you. I have added the column and set the default with your formula. After I save the form, the list is updated with the count. Great!

 

I appreciate your help.

 

Pei 

Helpful resources

Announcements
Check this Out

Helpful information

Featuring samples like Return to the Workplace and Emergency Response Applications

August 2020 Community Challenge: Can You Solve These?

August 2020 Community Challenge: Can You Solve These?

We're excited to announce our first cross-community 'Can You Solve These?' challenge!

secondImage

Return to Workplace

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

secondImage

Super Users Coming in August

We are excited for the next Super User season.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (4,250)