Fix statement in an IF condition: Error: 1012061 The CALC command [IF] can only be used within a CAL
Hello,
Below is my calculation script and when I try to validate it, I am getting
Error: 1012061 The CALC command [IF] can only be used within a CALC Member Block
I know I cannot use a FIX inside an IF statement.
Can someone please give some suggestions ?
SET AGGMISSG ON;
SET LOCKBLOCK HIGH;
SET UPDATECALC OFF;
SET MSG SUMMARY;
SET CALCPARALLEL 6;
SET CALCTASKDIMS 6;
FIX ("Plan","Final","USD","US Common","Working")
FIX(&Depreciation_Data_Start_Year,&Depreciation_Data_Start_Month:&Depreciation_Data_End_Month)
AGG("Resource","LegalEntity", "CostCenter","Project");