web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Count names in multili...
Power Apps
Answered

Count names in multiline SharePoint column

(1) ShareShare
ReportReport
Posted on by 88
Hi there,
 
I'm currently building a power app and want to get a name count from a multi line sharepoint column.
What I want to do is to count the rows where a selected name is in the people column, like so:
 
Miriam Graham: 3
Lee Gu: 2
 
 
I want to store it in a collection. Any idea how to get this working?
 
Kind regards,
Sarah
 
Categories:
  • Verified answer
    WarrenBelz Profile Picture
    156,921 Most Valuable Professional on at
    Hi @ebels
    Something like this should do it - I assume you have those values separated by a comma.
    ClearCollect(
       MyCollection,
       AddColumns(
          GroupBy(
             Split(
                YourTextField.Text,
                ","
             ),
             Value,
             Grouped
          ),
          Total,
          CountRows(Grouped)
       )
    )
     
    Please click Does this answer your question if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it a Like.
    MVP (Business Applications)    Visit my blog Practical Power Apps    LinkedIn    Buy me a coffee
  • Suggested answer
    ebels Profile Picture
    88 on at
    Thanks for your help! This did it.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 236 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 207 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 169

Last 30 days Overall leaderboard