Hi,
It may sound like trivial but I can't find the way to compute a yearly average considering only on the months that have data.
Considering the fact that I need to store this yearly average, I have to use a script logic.
Here is what I have tried but to no avail:
*CALC_EACH_PERIOD
*WHEN ACCOUNT
*IS #INCOMETAXPERCCUM
*REC(TIME=NEXT)
*IS #COUNT
*REC(TIME=NEXT)
*IS INCOMETAXPERC
*REC(EXPRESSION=1,ACCOUNT=#COUNT,TIME=NEXT)
*REC(ACCOUNT=#INCOMETAXPERCCUM,TIME=NEXT)
*REC(EXPRESSION=(%VALUE%GET(ACCOUNT=#INCOMETAXPERCCUM))/(1GET(ACCOUNT=#COUNT)),CATEGORY="%CATEGORY_SET%", TIME="OPE.PLAN")
*ENDWHEN
When I check the debug log, I notice that the two temporary variables #INCOMETAXPERCCUM and #COUNT are only computed for the first member that is included in my ENTITY memberset but not for the others. Besides, it does not cumulate as I would expect it would.
Any idea what I am doing wrong?
Thanks in advance,
Regis
Add a comment