使用 PBCS 中的计算管理器进行分配。维度:
-账户-
人员
-项目
分配自:
Account001 -> No Person -> No Project = 100;
至:
Account001 -> 人员 A -> 项目 I = 20;
Account001 -> 人 B -> 项目 II = 80;
按司机:
司机 -> 人员 A -> 项目 I = 2;
司机 -> 人 B -> 项目 II = 8;
有没有比下面的代码更好的方法?
我尝试了标准分配功能,但分配的数据没有人员维度信息。
结果是 Account001 -> no Person -> Project I
而不是 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
想知道是否有更好的方法来实现这一点。非常感谢。