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)