Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
5 years ago
Solved

How to Unpivot merge columns

Hi, I have a set of data with merge "month" column. How to unpivot it to have the expected output?

 

Raw Data:

 Oct-20Nov-20Dec-20Jan-21Feb-21Mar-21
NameCustomer CountSales AmountCustomer CountSales AmountCustomer CountSales AmountCustomer CountSales AmountCustomer CountSales AmountCustomer CountSales Amount
A356456687897892564566378978985645662789789
B567867863455642678678534556466786782345564
C623423432323425234234623234232342345232342
D267867855675679678678256756756786789567567
E534534523454567345345534545623453457345456

 

 

Expected Output:

NameMonthCustomer CountSales Amount
AOct-203564566
BOct-205678678
COct-206234234
DOct-202678678
EOct-205345345
ANov-208789789
BNov-206345564
CNov-203232342
DNov-205567567
ENov-202345456
ADec-202564566
BDec-202678678
CDec-205234234
DDec-209678678
EDec-207345345

1 Reply