Please start any new threads on our new site at We've got lots of great SQL Server experts to answer whatever question you can come up with.

Our new SQL Server Forums are live! Come on over! We've restricted the ability to create new threads on these forums.

SQL Server Forums
Profile | Active Topics | Members | Search | Forum FAQ
Register Now and get your question answered!
Save Password
Forgot your Password?

 All Forums
 SQL Server 2008 Forums
 SSIS and Import/Export (2008)
 Pivoted Value to Simplified Data is SSIS
 Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Posting Yak Master

112 Posts

Posted - 08/30/2013 :  09:46:49  Show Profile  Reply with Quote
I have Tried with Converting a CSV file to Pivot Transformation. Got some Results with Repeated Column Values.
Need to simplify this Pivot data to Destination.

[Country] [Brand] [Period] [Volume] [Value]
India Sun JUN 100 500
India Sun JUL 100 500
India Sun AUG 100 500
India Sun JUN 200 500
India Sun JUL 200 500
India Sun AUG 200 500
India Sun JUN 300 500
India Sun JUL 300 500
India Sun AUG 300 500

Pivoted Data: (Pivoting Volume Column as Columns)
[Country] [Brand] [Period] [100] [200] [300]
India Sun JUN 500 - -
India Sun JUL 500 - -
India Sun AUG 500 - -
India Sun JUN - 500 -
India Sun JUL - 500 -
India Sun AUG - 500 -
India Sun JUN - - 500
India Sun JUL - - 500
India Sun AUG - - 500

Need the Above Required Output as:
[Country] [Brand] [Period] [100] [200] [300]
India Sun JUN 500 500 500
India Sun JUL 500 500 500
India Sun AUG 500 500 500

How Could I transform to this Output using Other Component or its possible Thru in Pivot Transformation itself in SSIS. Please help me to Fix this.


Very Important crosS Applying yaK Herder

52326 Posts

Posted - 08/31/2013 :  06:15:42  Show Profile  Reply with Quote
you need to apply an aggregate transform after pivot
see sample package here

replace the file path and db/server names in config file and try

SQL Server MVP

Edited by - visakh16 on 08/31/2013 06:16:12
Go to Top of Page
  Previous Topic Topic Next Topic  
 Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.02 seconds. Powered By: Snitz Forums 2000