Using an Aggregator stage to calculate Year to date values
Posted: Mon Jul 07, 2008 4:08 am
I Have incoming data sorted by YearMonth, eg YYYYMM, then BusinessUnit, InvGroup & InvItemGroup, which is aggregated to give a monthly total in the following job structure:
Oracle Read ---- Transformer ------ Aggregator -------Transformer
I now need to populate a new field, YTD, with cumulative monthly totals eg:
MONTH MTD YTD
200801 10 10
200802 20 30
200803 30 60
etc
Does anybody have a nice elegant solution? Actually, just a solution would do.... I have searched the database but haven't found anything obviously pertinent....
Thanks
Oracle Read ---- Transformer ------ Aggregator -------Transformer
I now need to populate a new field, YTD, with cumulative monthly totals eg:
MONTH MTD YTD
200801 10 10
200802 20 30
200803 30 60
etc
Does anybody have a nice elegant solution? Actually, just a solution would do.... I have searched the database but haven't found anything obviously pertinent....
![Rolling Eyes :roll:](./images/smilies/icon_rolleyes.gif)
Thanks