Reputation: 229
could you please let me know how to transform the rows into Column in powerCenter? attached the Snapshot below.
Upvotes: 1
Views: 6228
Reputation: 17383
All you need is an aggregator - group by Product and add two output ports to calculate the product value:
MAX(IIF(end date = 1231999, Value, NULL))
MAX(IIF(end date = 01010001, Value, NULL))
UPDATE:
PowerCenter aggregate functions take an optional filter_condition
parameter, so you can also use the equivalent, more concise syntax:
FIRST(Value, end date = 1231999)
FIRST(Value, end date = 01010001)
Upvotes: 3