Allocation by using calculation manager in PBCS.
Dimension:
-Account
-Person
-Project
Allocate from:
Account001 -> No Person -> No Project = 100;
To:
Account001 -> Person A -> Project I = 20;
Account001 -> Person B -> Project II = 80;
By driver:
Driver -> Person A -> Project I = 2;
Driver -> Person B -> Project II = 8;
Are there any better ways than code below?
I tried the standard allocation function but allocated data does not have person dimension information.
Result was Account001 -> no Person -> Project I
instead of Account001 -> Person A -> Project I
FIX ({Entity},/*DIM:Year*/"FY19",/*DIM:Version*/"Working",/*DIM:Customer*/"No Customer",/*DIM:Period*/"Jun",/*DIM:HSP_View*/"BaseData",/*DIM:Scenario*/"Actual")
FIX ( /*DIM:Person*/@RELATIVE("Total Person",0))
FIX ( /*DIM:Project*/@RELATIVE("Total Project", 0))
/*STARTCOMPONENT:SCRIPT*/
SET CREATENONMISSINGBLK ON;
/*ENDCOMPONENT*/
/*STARTCOMPONENT:FORMULA*/
"A534001" = "534001"->"P000"->"No Project" * 100 / 100 * "Man-hour" / "Man-hour"->"Total Person"->"Total Project";
/*Project expense for one person = Total entity Expense * manhour of that person of that project / manhour of total person of total project */
/*ENDCOMPONENT*/
ENDFIX
ENDFIX
ENDFIX
Want to know if there are any better ways to achieve this. Many thanks.