Fix optimization issue

DELETING MY PREVIOUS POST AND SIMPLIFYING IT
i have a member A (stored) FORMULA=B/D/E
B(stored)
HIEARCHY
Z
A+ FORMULA=B/D/E
B+ NO FORMULA
L+
M+
NOW MY CALC SCRIPT
FIX(VERSIONONE,SOURCE,@LEVMBRS(ENTITY,0),@LEVMBRS(LOB,O),FORECAST,2013)
FIX(JAN)
IF(NOT @ISMBR(ENTITY1) AND NOT @ISMBRS(LOB1))
B=D*(PRIOR( A ) * E*F
ENDIF
A;
ENDFIX
FIX(FEB)
IF(NOT @ISMBR(ENTITY1))
B=D*(PRIOR( A )* E*F
ENDIF
A;
ENDFIX.......SO ON ANOTHER 10 FIX FOR MAR,APR TO DEC
tHIS ABOVE SCRIPT WORKS CORRECT
NOW I WANTED TO POTIMIZE IT
SO I WROTE IT IN THIS WAY
FIX(JAN)
IF(NOT @ISMBR(ENTITY1))
B=D*(PRIOR(*A*)* E*F
ENDIF
A;
ENDFIX
FIX(FEB:DEC)
IF(NOT @ISMBR(ENTITY1))
B=D*(PRIOR(A)* E*F
ENDIF
A;
ENFIX
DOES NOT WORK ,thE RESULTS ARE AS FOLLOWS
WHEN I FIRST RAN THE SCRIPT.....DATA IS POPULATED FOR ONLY JAN MONTH
SECOND TIME DATA IS POPULATED FOR ONLY FEB
THIRD TIME ONLY MAR................
SO MY SCRIPT IS CALCULATING B WHICH DEPENDS ON PRIOR( A ),LATER CALCS A WHICH IS BASED ON B.wHEN I AM FIXING (FEB:DEC)IT IS CALCULATING FEB:DEC AT THE SAME TIME SO MISSING THE ORDER OF CALCULATION .
I WANT MY CALCULATION TO HAPPEN IN ORDER ......
ANY SUUGGESTIONS
Edited by: lakshmi on Aug 20, 2012 5:07 PM

Hi,
Not completely sure of following, but you can try it.
Make A simply as stored without any formula.
FIX(JAN)
IF(NOT @ISMBR(ENTITY1))
B=D*(PRIOR(*A*)* E*F
ENDIF
A=B/D/E ;
ENDFIX
FIX(FEB:DEC)
IF(NOT @ISMBR(ENTITY1))
B=D*(PRIOR(A)* E*F
ENDIF
A =B/D/E;
ENDFIX
And howz about using @MDSHIFT(A,-1,"Period") instead of @PRIOR(A)?
Also I think it is due to calculation in cell mode,thought not sure.
You can also try using a member/variable to store prior value of A and then use the member/variable later in calculations.
Hope this helps. Guru's can help us to understand this more properly.
Regards
-SM

Similar Messages

Maybe you are looking for

  • Cannot Start Premiere Pro CC in Windows 8.1

    Hi, I cannot start Premiere Pro in Windows 8.1, i can use Premiere Pro in the past without problems... I reinstalled but nothing I have the lastest version of my graphic card drivers ¿Could you help me please?

  • How to delete messeges from SMS

    MY SMS folder is empty.  However when ever i switch off and on a messege comes on screen displaying several old messeges and asking me to save or otherwise I tried to find the messeges but nowhere i could locate it.  How to find where the messege is

  • Microsoft C++ Buffer Overflow Error

    I have created two movies from iPhoto on my Mac. When I move them to an XP machine, sometime after 30 minutes of playing, I get the Microsoft C++ Buffer Overflow Error message, and Quicktime for Windows aborts. I have no problems playing them to comp

  • HP All in one Volume bar error

    Helloo, i have a hp all in one pc ..........from 3-4 days it is resulting a blue volume bar when ever i put the volume up or down from the keyboard .........i have tried to change my settings but unfortunately its not done..................... so plz

  • BAPI for park invoice

    I would lik to create a park invoice in my program, just simulation the t-code "MIR7", so, i found that there have a BAPI "BAPI_INCOMINGINVOICE_PARK" seems to be fulfill my requirement, after call the BAPI in my program, the result is not as same as