Hi, I'm stuck with the Pivot Transformation and would appreciate if anyone can point me in the right direction.
I've got 4 incoming columns:
RetailerLineID | Retailer | Tariff Description | Tariff Value |
1 | Retailer A | Levy | 0.0021 |
1 | Retailer A | Discount | 0.12 |
1 | Retailer A | Fixed daily charge | 1.4548 |
1 | Retailer A | Uncontrolled | 0.337 |
which I would like to display as follow:
RetailerLineID | Retailer | Levy | Discount | Fixed daily charge | Uncontrolled |
1 | Retailer A | 0.0021 | 0.12 | 1.4548 | 0.337 |
I've setup my Pivot Transformation as follow:
RetailerLineID PivotUsage as 0
Retailer PivotUsage as 1
TariffDescription PivotUsage as 2
TariffValue PivotUsage as 3
I've defined the following output columns:
RetailerLineID
Retailer
Levy - PivotKeyValue = Levy, SourceColumn = LinageID of Input Tariff Description
Discount - PivotKeyValue = Discount, SourceColumn = LinageID of Input Tariff Description
Fixed daily charge - PivotKeyValue = Fixed daily charge, SourceColumn = LinageID of Input Tariff Description
Uncontrolled - PivotKeyValue = Uncontrolled, SourceColumn = LinageID of Input Tariff Description
But I get the error message:
Error at Data Flow Task [Pivot [150]]: Output column "Levy" (369) cannot be mapped to PivotKey input column.
What am I doing wrong? Seems like there is nothing I can do to get rid of this error and as far as I know my configuration is correct. Have a missed anything?