cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
JS Regular Visitor
Regular Visitor

Transforming data with all timeframe in a column

Hello all. 

 

I have a raw data below and require certain transofmation and any advise/solution will be helpful. 

 

I have a column name Quartely Breakdown and it contains information as shown below. 

 

IDQuarterly Breakdown
12018Q1: 5000
22018Q2: 2500; 2018Q3: 2400
32018Q1: 4000; 2018Q2: 4000; 2018Q3: 4000; 2018Q4: 5000

 

I wish to obtain a desired results below. 

 

IDPeriodAmount
12018 Q15000
22018 Q22500
22018 Q32400
32018 Q14000
32018 Q24000
32019 Q34000
32019 Q45000

 

I have tried unpivoting and pivoting the columns but still could not get the desired results. Thanks in Advance! 

 

JS

1 ACCEPTED SOLUTION

Accepted Solutions
v-jianhe-msft Regular Visitor
Regular Visitor

Re: Transforming data with all timeframe in a column

Hi,

 

To achieve it, you could first split the column based on the delimiter “semicolon”, noted in “Advanced options”, select “rows”.

1.PNG

By doing this, the column will become

2.PNG

Then split the column again. This time only need to set delimiter as “Colon”:

3.PNG

And the final result is like:

4.PNG

BR,

Henry

 

2 REPLIES 2
v-jianhe-msft Regular Visitor
Regular Visitor

Re: Transforming data with all timeframe in a column

Hi,

 

To achieve it, you could first split the column based on the delimiter “semicolon”, noted in “Advanced options”, select “rows”.

1.PNG

By doing this, the column will become

2.PNG

Then split the column again. This time only need to set delimiter as “Colon”:

3.PNG

And the final result is like:

4.PNG

BR,

Henry

 

JS Regular Visitor
Regular Visitor

Re: Transforming data with all timeframe in a column

Thank you!!!