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

Community site session details

Session Id :
Power Apps - Building Power Apps
Answered

converting one column table to multiple columns table

(0) ShareShare
ReportReport
Posted on by 5

I have a table which has one column  named "id/name/age" and  some rows ,"1/xxx/23", "2/yyy/33", "3/zzz/55".... 

 

I'm trying converting this table to new table which has three columns, "id", "name", "age". I guess I should use Split(), AddColumns().

 

Do you have any idea? 

 

Categories:
I have the same question (0)
  • Verified answer
    timl Profile Picture
    35,811 Super User 2025 Season 2 on at
    Re: converting one column table to multiple columns table

    Hi @data25

     

    My inclination would be to split the data at the data source level. Perhaps you use a data source that supports computed columns?

     

    Failing that, here's the syntax you would use that incorporates the AddColumns and Split functions.

     

    AddColumns(myDataSource,
     "ID", First(Split(IdNameAgeColumn, "/")).Result,
     "Name", Last(FirstN(Split(IdNameAgeColumn, "/").Result, 2)).Result,
     "Age", Last(FirstN(Split(IdNameAgeColumn, "/").Result, 3)).Result
    )

    Hope that helps.

  • data25 Profile Picture
    5 on at
    Re: converting one column table to multiple columns table

    Thank you very much for your answer ! It works as expected !

    I always use Google Sheet as datasource, but in case this I faced 6 columns limitation, so I concatenate multiple columns in Google Sheet before powerapps, and then split 6 columns again. 

    That's why I'd like to know this.

    Thank you!

  • timl Profile Picture
    35,811 Super User 2025 Season 2 on at
    Re: converting one column table to multiple columns table

    Thanks for clarifying the Google Sheet data source. I'm very glad the formula works for you.

  • CP0822 Profile Picture
    66 on at
    Re: converting one column table to multiple columns table

    Hi,

     

    I'm trying to do something very similar. I have one textinput where the user paste a data from Excel.

     

    I want to save this information in a collection with multiple columns, this is my code right now

     

    Collect(
    TestColl;
    Split(
    Substitute(TextInput3.Text;Char(9);"/");
    Char(10)
    )
    );;AddColumns(TestColl;"Fase";First(Split(Result;"/").Result).Result;"Done"; Last(FirstN(Split(Result; "/").Result; 2)).Result)

     

    This is what I'm getting right now, any ideas?

     

    Example1.JPG

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

Coming soon: forum hierarchy changes

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

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 651 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 385 Super User 2025 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 230 Super User 2025 Season 2

Last 30 days Overall leaderboard