Quantcast
Channel: SQL Server Integration Services forum
Viewing all articles
Browse latest Browse all 24688

SSIS :[Pivot [85]] Error: Duplicate pivot key value

$
0
0

Hi All.

I am working on the below data set(source) to  pivot and get desired output format

SOURCE
YEARMONTHAREAPRODUCTMODELCUSTOMERAMT/QTYVALUE
201605ALASKAMWOQQ-12KLU3215572AMT71000
201605ALASKAMWOQQ-12KLU3215572QTY23
201606ALASKAMWOQQ-12KLU3215572AMT25682
201606ALASKAMWOQQ-12KLU3215572QTY12


DESIRED OUTPUT
YEARMONTHAREAPRODUCTMODELCUSTOMERAMTQTY
201605ALASKAMWOQQ-12KLU32155727100023
201606ALASKAMWOQQ-12KLU32155732568212


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


Viewing all articles
Browse latest Browse all 24688

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>