Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building Power Apps
Answered

Split column values as new rows in a collection

(0) ShareShare
ReportReport
Posted on by 15,665 Super User 2024 Season 1

Hi everyone,

 

How can I split column values by delimiter as new rows into a Collection?

 

Example below:

 

Example.png

 

regards, 

AmiK

Categories:
  • knyklu Profile Picture
    149 on at
    Re: Split column values as new rows in a collection

    Hello,

    @Amik , can You tell me what exactly was the problem with empty values?

    I have used this formula based on xls table, and worked perfect.
    After swap xls table to dataverse (the same data, the same columns, only different is a new column (ID) - auto-number type) the formula returns only records where the column with split values is not empty.

    Best Regards, Krzysiek

  • Ami K Profile Picture
    15,665 Super User 2024 Season 1 on at
    Re: Split column values as new rows in a collection

    All resolved. There was a blank value in my ID column which caused the problem.

  • Ami K Profile Picture
    15,665 Super User 2024 Season 1 on at
    Re: Split column values as new rows in a collection

    Thanks @Raksh1Wadel I did not see this thread.

    At present the solution from @RandyHayes is working but it is only displaying records which contain multiple "Linked Ids". I also want to include records which do not contain multiple "Linked Ids" in the collection.

    Does anyone know how I can edit the syntax to ensure all records are pulled in?

     

     

    //Thanks to Randy Hayes https://powerusers.microsoft.com/t5/Building-Power-Apps/Multiple-column-split-into-rows/td-p/715847
    Clear(collect_Mitigations2);
    ForAll(
     spl_Mitigation,
     With(
     {
     mitigations: Split(
     LinkedRiskIDs,
     ";"
     )
     },
     With(
     {statCount: CountRows(mitigations)},
     ForAll(
     Sequence(Max(statCount)),
     Collect(
     collect_Mitigations2,
     {
     Title: Title,
     ID: ID,
     Details: Details,
     Date_x0020_complete: Date_x0020_complete,
     Owner: Owner,
     DueDate: DueDate,
     Status: Status,
     RAG_x0020_Status: RAG_x0020_Status,
     Comments: Comments,
     Last_x0020_Comment_x0020_DateTim: Last_x0020_Comment_x0020_DateTim,
     Ongoing_Mitigation: Ongoing_Mitigation,
     RiskID: If(
     Value > statCount,
     "",
     Last(
     FirstN(
     mitigations,
     Value
     )
     ).Result
     )
     }
     )
     )
     )
     )
    )

     

     

     

     

  • Verified answer
    Community Power Platform Member Profile Picture
    on at
    Re: Split column values as new rows in a collection

    Hi,

    You can refer to this link it will help you to resolve your issue.

    Solved: Multiple column split into rows - Power Platform Community (microsoft.com)

     

    I hope it helps
    If this post helps, then please consider Accept it as the solution to help the others and consider giving it a "Thumbs Up."

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,524 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,906 Most Valuable Professional

Leaderboard