Hi All,
I have scenario whereby the value in the period need to be replicated to the next periods until period 12. For example,
Source Data | Target Data | |
Period 1 | 1000 | 1000 |
Period 2 | 1500 | =1000+1500 |
Period 3 | 3000 | =1000+1500+3000 |
Period 4 | 4000 | =1000+1500+3000+4000 |
Period 5 | 4500 | =1000+1500+3000+4500 |
Period 6 | 0 | =1000+1500+3000+4500 |
Period 7 | 0 | =1000+1500+3000+4500 |
Period 8 | 0 | =1000+1500+3000+4500 |
Period 9 | 5000 | =1000+1500+3000+4500+5000 |
Period 10 | 0 | =1000+1500+3000+4500+5000 |
Period 11 | 0 | =1000+1500+3000+4500+5000 |
Period 12 | 0 | =1000+1500+3000+4500+5000 |
So if there is value in period 1, it will be replicated in the next periods (2,3,4...)until period 12,
If there is value in period 2, it will be replicated in the next periods (3,4,5....) until period 12, and etc
How do I script the logic if the logic need to be called in the data package?
I am thinking to use the allocation, but not sure how to create a dynamic variable to tell the system if TIME=2016.01 then WHAT is 2016.01 and WHERE is 2016.02 onwards, if TIME=2016.02 then WHAT is 2016.02 and WHERE is 2016.03 onward.
*RUNALLOCATION
*FACTOR = 1
*DIM TIME WHAT = 2016.01 ;WHERE = 2016.02; Using = <<<
*ENDALLOCATION
Appreciate your help.
Thanks