How to reach on average 24 months?

Hello

I put variables:

CurrMonth = August
CurrYear = FY10

For the account named Avg_Biscuits in the Budget scenario, I need to match the sum of the "cookies" for periods of 24 divided by 24. So periods AFA 08-August-FY10-> Jul > divided by 24. However he jumps between the years/months and don't know how to do it. I don't want to have to define 24 different variables that they would need to be maintained and that seems to be a problem anyway. I tried @MOVSUM with no luck. Is there an average function that can do so in the months and years?

Hello
If you create more than subs 3 variables and update the values of those your risk could be solved.

& PrevYear2 = 2008
& PrevMonth2 = Jul
& PrevYear1 = 2009
& CurYear = 2010
& CurMonth = August
& PrevMonth = Jul

Average could function as below:
IF (not @ISMBR (Jan))
(
@Sumrange (AccountMember,@XRANGE (& PrevYear2-> & PrevMonth2 & PrevYear2-> Dec)) +.
@Sumrange (AccountMember,@XRANGE (& PrevYear1-> Jan, & PrevYear1-> Dec)) +.
@Sumrange (AccountMember,@XRANGE (CurYear-> Jan & CurYear-> & PrevMonth))
) / 24;
ON THE OTHER
(
@Sumrange (AccountMember,@XRANGE (& PrevYear2-> & PrevMonth2 & PrevYear2-> Dec)) +.
@Sumrange (AccountMember,@XRANGE (& PrevYear1-> Jan, & PrevYear1-> Dec))
) / 24;

It should be noted that it works different in Jan as the previous month in the previous year.

See you soon,.
Alp

Tags: Business Intelligence

Similar Questions

Maybe you are looking for