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 column values as...
Power Apps
Unanswered

Split column values as new rows in a collection

(0) ShareShare
ReportReport
Posted on by 15,679 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:
I have the same question (0)
  • Verified answer
    Community Power Platform Member Profile Picture
    on at

    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."

  • Ami K Profile Picture
    15,679 Super User 2024 Season 1 on at

    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
     )
     }
     )
     )
     )
     )
    )

     

     

     

     

  • Ami K Profile Picture
    15,679 Super User 2024 Season 1 on at

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

  • knyklu Profile Picture
    151 on at

    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

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 796 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard