Forum Discussion

scoobymoo's avatar
scoobymoo
Frequent Visitor
7 years ago
Solved

Splitting multiple columns using delimiter

Hi

 

I have a table which includes 3 columns with delimiters. I need to split the columns into rows using the delimiters but maintaining the order of the information in the columns

 

for example:

 

I would like this

Person IDTypeOrder IDDate of TransactionDate of Payment
001Blue100,10101/01/18, 02/01/1802/01/18, 03/01/18
002Blue102,103,10401/01/18, 01/01/18, 02/01/1802/01/18, 02/01/18, 03/01/18
003Red105,10601/12/2016, 13/04/201502/12/2016, 13/04/2015

To look like this

Person IDTypeOrder IDDate of TransactionDate of Payment
001Blue10001/01/201802/01/2018
001Blue10102/01/201803/01/2018
002Blue10201/01/201802/01/2018
002Blue10301/01/201802/01/2018
002Blue10402/01/201803/01/2018
003Red10501/01/201802/01/2018
003Red10602/01/201803/01/2018

 

I can split one column into rows using the delimiters but is it possible to split them all without losing the relationship?

 

Thank you

 
  • Hi scoobymoo,

     

    Based on my test, it's difficult to insert values from one column to another column in power bi. I woud recommend you to try R script or python script to do this.

     

    Regards,

    Jimmy Tao

1 Reply

  • v-yuta-msft's avatar
    v-yuta-msft
    Community Support

    Hi scoobymoo,

     

    Based on my test, it's difficult to insert values from one column to another column in power bi. I woud recommend you to try R script or python script to do this.

     

    Regards,

    Jimmy Tao