You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Yearly Average Balance Script Optimization

edited Aug 2, 2018 2:36AM in Essbase 5 comments

Summary

Yearly Average Balance Script Optimization

Content

Hi -

This script was written to calculate our yearly average balance. The script takes forever to run-

Any suggestions on how to optimize it?

SET CALCPARALLEL 4;

SET MSG SUMMARY;

VAR

JanDays = 31, FebDays = 28, MarDays = 31, AprDays = 30, MayDays = 31, JunDays = 30,

JulDays = 31, AugDays = 31, SepDays = 30, OctDays = 31, NovDays = 30, DecDays = 31

;

FIX("Actual", "Final", &CurrYr, &CurrMth, @CHILDREN ("BALSHT"))

FIX(@RELATIVE("PBLOB", 0))

YAB(

IF(@ISMBR("JUL"))

"YAB" =

(

("JAN"->"MAB" * JanDays) + ("FEB"->"MAB" * FebDays) + ("MAR"->"MAB" * MarDays)

+ ("APR"->"MAB" * AprDays) + ("MAY"->"MAB" * MayDays) + ("JUN"->"MAB" * JunDays)

+ ("JUL"->"MAB" * JulDays)

)

/ (JanDays + FebDays + MarDays + AprDays + MayDays + JunDays + JulDays);

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!