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 Collection Colum...
Power Apps
Answered

Split Collection Column into 2 columns taking bottom half of values to new column

(0) ShareShare
ReportReport
Posted on by 41

Hi,

 

I have a collection with one column consisting of 84 values. The values represent a question and answer extracted from a string, the first half of values are the question and the second half are the answers. I therefore want to add a new column to my collection which takes the second half of my first column, resulting in two columns of 42 rows. Is this possible?

 

I have tried the AddColumns function to no avail

Categories:
I have the same question (0)
  • Verified answer
    v-xiaochen-msft Profile Picture
    Microsoft Employee on at

    Hi @DizzyAy ,

     

    I made a sample for you.

    vxiaochenmsft_0-1686555387792.png

    vxiaochenmsft_1-1686555398101.png

    Clear(Col2);ForAll( Sequence( CountRows(Col)/2),Collect(Col2,{Q:Index(Col,Value).Q,A:Index(Col,CountRows(Col)/2+Value).Q}))

     

    Best Regards,

    Wearsky

  • DizzyAy Profile Picture
    41 on at

    Works perfectly, thanks @v-xiaochen-msft 

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 1,033

#2
Valantis Profile Picture

Valantis 632

#3
11manish Profile Picture

11manish 607

Last 30 days Overall leaderboard