Aggregation transformation component in SSIS

This is the scenario faced by a candidate when he had repeated values in his SQL Server records as shown in the image down below.

1

If we try to run the package it will throw us an error,

Error:

2

3

The error says that the pivot key has a duplicate value.

Solution:

To solve this error we will add a new component on our SSIS package available from SSIS toolbox under transformationknown as Aggregation Transformation. With the use of this component duplicate values will be removedand it will become one while Sales Amount gets aggregated.

4

This new Aggregate component is asked by candidate of MSBI training to place it between “OLE DB Source” and “Sort” component.

5

To remove redcross mark seen over “Aggregate” component even after connecting data path to each component. Double click and open its editor window to configure it.

6

After Editor window is open set “SalesAmount” operation field to “Sum” as shown in the image down below.

7

After configuring the Aggregate transformation, we then execute the package,

8

The output shown below is from the laptop of MSBI training candidate where duplicate values for “Jan” and “Sun” has their “Sales Amount” field aggregated.

9

Comments

comments

This entry was posted in MSBI Training in Mumbai and tagged , , , , , , . Bookmark the permalink.

Leave a Reply

Your email address will not be published.