Hi,
A small Suggestion here:
If your source is Bex, why don't you ask the BW consultant to create the customer exit variables for deriving last 3/6/9/12/24/36 months info from their side.(by giving date in istep1).
This would avoid complex calculations at webi side.
Br
Prabhith