Quantcast
Channel: SCN : All Content - SAP Planning and Consolidation, version for SAP NetWeaver
Viewing all articles
Browse latest Browse all 5457

BPC NW 10.1 Script Logic - Dynamic number of years for average calculation

$
0
0

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!


Viewing all articles
Browse latest Browse all 5457

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>