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

Notifications

Announcements

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:
I have the same question (0)
  • WarrenBelz Profile Picture
    153,079 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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 739 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard