Hello,
I have a requirement from a client that I want to implement in script logic, however all the approaches I've tried don't work.
The rule is fairly simple, to calculate the monhtly budget values based on the actual values of the previous year and a growth rate that is stored in the months of the budget year.
Example (only for the first 3 months of the year to simplify:
ACTUAL_VALUES GROWTH_RATE BUDGET_VALUES
2014 Jan 100
2014 Feb 200
2014 Mar 500
2014 Apr 350
2015 Jan 0,1 10
2015 Feb 0,6
2015 Mar 0,3
2015 Apr 0,4
I'm trying with the following script logic in the transaction UJKT, but I've only managed to perform the calculation correctly for one month. I need to insert a data region for the PERIOD dimension, but when I add more than one month (for example PERIOD = 2014.01,2014.02,2014.03,2014.04) the calculation only consider one of the months in the %PERIOD_SET% and stores everything in the same month.
*XDIM_MEMBERSET RUBRICA_INV_DIV = ACTUAL_VALUES, BUDGET_VALUES
*WHEN RUBRICA_INV_DIV
*IS ACTUAL_VALUES
*REC(RUBRICA_INV_DIV= BUDGET_VALUES,PERIOD = TMVL(12,%PERIOD_SET%), EXPRESSION = %VALUE% * ([RUBRICA_INV_DIV].[GROWTH_RATE],[PERIOD].[TMVL(12,%PERIOD_SET%)]))
*ENDWHEN
*COMMIT
I need to use the ACTUAL_VALUES in the WHEN command because this account has other details in other dimensions, that the growth rate doesn't have and I need it in the budget results.
Can anyone help me please?
Thanks!