Hello all,
We have a request from a client that we would like to implement in script logic, but so far we haven't been able to.
They have the Net Interest Income from the previous years in the system, like this:
2011 2012 2013 2014
Net Income 1000 1250 1500 1360
The rule for predicting the next year, is by averaging the previous years, but the number of years to use in the calculation can be variable and they want to be able to store it in an account (Nr_Years) in an input form.
So, for example, if the value stored in Nr_Years was 3 the value for Net Income 2015 would be 1370 (considering the 2012, 2013 and 2014 values), but if the Nr_Years was 2, then Net Income 2015 would be 1430 (using only the 2013 and 2014 values).
We've tried several approaches in script logic to achieve this, using a lookup to get the Nr_Years, and then trying to compare this value to the YEAR in the TIME dimension, or using the TMVL function, but I still couldn't obtain the wanted results.
Has anyone ever came across something like this?
Thanks in advance!