on 05-20-2015 3:20 PM
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi..
The scenario is used to duplicate the budget sAlary of Employee monthly. if new employee will be employed On January with salary = USD1.000 /month then User will enter USD1.000 in the budget salary On January and system has to auto duplicate the salary on the next months onward (so user does not need to enter the budget salary every month)
Let say in February ,another new employed will be employed (starting the job in february) with salary= USD 1.500 /month, then there will be Additional budget USD 1500 in February (entered by users) and system has to duplicate the salary on the next months onward .
User only enter entity and category in the data package selection.
From the category we can derive the budget year in the script .
We are in BPC 10.1 . Thanks
Let's check:
The user can enter value for any month of the year (and in multiple months of the year also). Data is saved.
Then user will launch DM package selecting entity and category.
Category member will contain valid YEAR property with the Year to perform calculations.
Is it correct?
Vadim
P.S. Do you want to update the same members or it's better to use different AUDITID for target?
"Audit iD is not required"
How the values will be entered?
Do you have a list of dummy ID's for new positions? Or what?
What if you want to increase salary of some employee? How you will enter this data?
What if you want to terminate some employee???
Sorry, but you have to explain the data entry logic step by step for all possible cases...
If you enter and save some value in the input form it will overwrite the previous value!
Vadim
We have ID for each position. We budget payroll per position(not by individual employee)
We do not consider the termination , The increment of salary is calculated in different account after we duplicate the salary cost each month ,This scenario is to handle budget for existing staff (already hired), what we are discussing now is scenario for new Staff. in my case, existing and new staff are separate data set.
actually..the user enter number of staff in account =quantity and then system will calculate the USD value (account: salary cost)in the month where Quantity is entered . from here, i will need to duplicate the USD Value as per what i explained earlier.
If the users change the quantity in the input form then DM need to be re executed and the previous value Should be replaced.
any idea how to script it ?
.
actually l just want to ask on how to pass the time parameter dynamically in the Script below :
When time:20i6. 01
*RUNALLOCATION
*FACTOR = 1
*DIM TIME WHAT = 2016.01 ;WHERE = 2016.02 Until 2016.12; Using = <<<
*ENDALLOCATION
when time:2016.02
*RUNALLOCATION
*FACTOR = 1
*DIM TIME WHAT = 2016.02 ;WHERE = 2016.03 until 2016.12; Using = <<<
*ENDALLOCATION
when time:2016.03
*RUNALLOCATION
*FACTOR = 1
*DIM TIME WHAT = 2016.03 ;WHERE = 2016.03 until 2016.12; Using = <<<
*ENDALLOCATION
and so on until when time: 2016.11
Of course I cannot just simply use the above script ,but I just want to get idea on how to pass the year property in category dimension and to pass the period dynamically in above script,
thanks
Sorry, but the script is completely wrong and will never do what you think! Each *RUNALLOCATION will overwrite target...
About dynamic parameters - your dynamic parameter is YEAR:
*SELECT(%Y%,[YEAR],CATEGORY,[ID]=%CATEGORY_SET%)
Then you can use %Y% to generate dynamic month members like:
%Y%.01, %Y%.02,...
Vadim
Hi
I am not sure of your need to achieve this requirement via script logic only. If you are looking for other alternatives, may be you see below alternative.
Using input schedule (worksheet):
Modify the input schedule where user will input details of new recruits, like below and save data to BPC.
In this case, your whole process will be completed in 1 step, instead of 2 steps in existing process, where the user has to run script logic separately.
Formula to use: =IF($C5<=F$3,$D5,0)
Thank you.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
15 | |
4 | |
2 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.