Hi All.
I am working on the below data set(source) to pivot and get desired output format
SOURCE | ||||||
YEARMONTH | AREA | PRODUCT | MODEL | CUSTOMER | AMT/QTY | VALUE |
201605 | ALASKA | MWO | QQ-12KLU | 3215572 | AMT | 71000 |
201605 | ALASKA | MWO | QQ-12KLU | 3215572 | QTY | 23 |
201606 | ALASKA | MWO | QQ-12KLU | 3215572 | AMT | 25682 |
201606 | ALASKA | MWO | QQ-12KLU | 3215572 | QTY | 12 |
DESIRED OUTPUT | ||||||
YEARMONTH | AREA | PRODUCT | MODEL | CUSTOMER | AMT | QTY |
201605 | ALASKA | MWO | QQ-12KLU | 3215572 | 71000 | 23 |
201606 | ALASKA | MWO | QQ-12KLU | 3215573 | 25682 | 12 |
I have used PIVOT TRANSFORMATION
1. PIVOT KEY : QTY/AMT
SET KEY : MODEL
PIVOT VALUE:VALUE
1. My data is unique at yearmonth,area,product,model,customer level i used sort transformation before pivot to sort all the mentioned columns.
2.In Input columns changed Pivot usage for yearmonth,area,product,model,customer the colums to 1
i am not able to resolve the duplicate key issue .can someone please guide me