A pivot table is a result of cross-tabulated columns generated by summarizing data from a row format.
Create a Data Flow Task something similar to below using Pivot component.
Use this query to get the unpivot data
Select TransMonth for the Pivot Key. This is the column that represents your columns. Change the Set Key property to ProductName. This is the column that will show on the rows, and your earlier query must be sorting by this column. Lastly, type the values of [December],[November],[October],[September] in the “Generate pivot output columns from values” area and check the Ignore option above this text box. Once complete, click the Generate Columns Now button.
The output will be something similar to shown below
Cheers!
Uma
No comments:
Post a Comment