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 / Split multiperson colu...
Power Apps
Suggested Answer

Split multiperson column into rows

(0) ShareShare
ReportReport
Posted on by 14
Hi all
I have this SharePoint list
ID SurveyID ThemeID Order Question Responsible
109 2 1 3 pergunta teste Johnson, Bruce
Field, Sally
108 2 2 2 Teste pergunta composto Nyugen, Sam
Johnson, Bruce
94 10 6 68 A avaliação do resultado dos treinamentos é verificada por meio de: Field, Sally
 
Loaded in my canvas app named ColQuestions, now I need to convert column Responsible in rows, like this:
 
ID SurveyID ThemeID Order Question Responsible
109 2 1 3 pergunta teste Johnson, Bruce
109 2 1 3 pergunta teste
Field, Sally
108 2 2 2 Teste pergunta composto Nyugen, Sam
108 2 2 2 Teste pergunta composto
Johnson, Bruce
94 10 6 68 A avaliação do resultado dos treinamentos é verificada por meio de: Field, Sally
 
 
How can I get this result?
Categories:
  • WarrenBelz Profile Picture
    156,574 Most Valuable Professional on at
    Use the Ungroup function
    Ungroup(
       SPList,
       Responsible
    )
    Note that the amount of records able to be addressed is restricted to your Data Row Limit.
     
    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    Buy me a coffee

     
  • Suggested answer
    Nandit Profile Picture
    1,568 Moderator on at
     
    You will need a delimiter like ";" between the names in the Responsible column. 
    Quick question what type of column is Responsible in your SharePoint list?
     
    If you have a Delimiter ";", you can use the following code to generate the output you require - 
    I created the dummy dataset as a collection:
    ClearCollect(
        colQuestions,
        {
            ID: 109,
            SurveyID: 2,
            ThemeID: 1,
            Order: 1,
            Question: "Test",
            Responsible: "Johnson, Bruce;
    Field, Sally"
        },
        {
            ID: 108,
            SurveyID: 2,
            ThemeID: 1,
            Order: 1,
            Question: "Test2",
            Responsible: "Nyugen, Sam;
    Johnson, Bruce"
        }
    )
    Then I run the following code to create the required output:
    ForAll(
        colQuestions As Record,
        ForAll(
            Split(
                Record.Responsible,
                ";"
            ) As Person,
            Collect(
                colQuestions_Converted,
                {
                    ID: Record.ID,
                    SurveyID: Record.SurveyID,
                    ThemeID: Record.ThemeID,
                    Order: Record.Order,
                    Question: Record.Question,
                    Responsible: Person.Value
                }
            )
        )
    )
    Here's how it looked:
     
    Hope this helps. 
     
    Kind regards, 
    Nandit
     
    If this answers your query, please mark this response as the answer.
    If its helpful, please leave a like. Thanks!
     
  • Nandit Profile Picture
    1,568 Moderator on at
    I just noticed you mentioned its a Multiperson column, please disregard my suggestion and use WarrenBelz's suggestion, it will work perfectly!

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 382 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 329

#3
WarrenBelz Profile Picture

WarrenBelz 187 Most Valuable Professional

Last 30 days Overall leaderboard