Question

could you please let me know how to transform the rows into Column in powerCenter? attached the Snapshot below.

enter image description here

Was it helpful?

Solution

All you need is an aggregator - group by Product and add two output ports to calculate the product value:

  • Current_value - MAX(IIF(end date = 1231999, Value, NULL))
  • Future_value - 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:

  • Current_value - FIRST(Value, end date = 1231999)
  • Future_value - FIRST(Value, end date = 01010001)
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top