Dear All,
Can I execute Run Allocation script via data package "Default formulas" (with modifying the script to call my own script? Or should I use dedicated "allocation" data package?
Script:
// To allocate the QTY for each employee to budget cycle monthly
*RUNALLOCATION
*FACTOR = 1/12
*DIM TIME WHAT = NONE ;WHERE = BAS(2006.TOTAL); Using = <<<
*ENDALLOCATION
// To calculate Total cost for each employee
*WHEN ZKF
*IS QTY
*REC(EXPRESSION = %VALUE% * ([ZKF].[PRICE],[TIME].[NONE],[ZEMPLOYEE_T].[NONE]), ZKF = TOT)
*ENDWHEN
Existing Transaction Data:
Time | ZKF | Employee | Data |
NONE | QTY | XXX | 2 |
NONE | TOT | XXX | 500 |
NONE | PRICE | NONE | 800 |
Expected Result for each month in 2006 | ||||||
Time | ZKF | Employee | Data | |||
2006.01 | QTY | XXX | =(2/12) | |||
2006.01 | TOT | XXX | =(2/12) * 800 | |||
NONE | TOT | NONE | 1600 |
System throws errors (data package status is failed) : "Suppressed zero value records =12". But when I see the formula log, it already capture my expectation results. What could be the reasons?
Thanks.