Moving Average Rule
Posted: Thu May 31, 2012 2:25 am
Good morning/afternoon TM1 gurus,
I'm currently working on a sales project that requires a moving average rule. Dimensions are "customer" , "Location" , "Measures" , "Year" such as 2011,2012,2013 and
"day" with the 365 days of the year that rolls up to the corresponding month as parent (Jul, Aug, Sep...) and the month to the top parent "Total Year" (see example below) I'm trying to show the sales daily average value based on a 10 day moving period, for example see below This means that May-15 shows the avrg of the values from May-15 to May-02 and so on...
So my question is:
How do I work out the avrg backwards based on the previous 10 days that have a value against, if there is no value then exclude it. What I mean by a value is something in the cube cell even if its a zero..???
Any help, hints and/or tips will be greatly appreciated...
I'm currently working on a sales project that requires a moving average rule. Dimensions are "customer" , "Location" , "Measures" , "Year" such as 2011,2012,2013 and
"day" with the 365 days of the year that rolls up to the corresponding month as parent (Jul, Aug, Sep...) and the month to the top parent "Total Year" (see example below) I'm trying to show the sales daily average value based on a 10 day moving period, for example see below This means that May-15 shows the avrg of the values from May-15 to May-02 and so on...
So my question is:
How do I work out the avrg backwards based on the previous 10 days that have a value against, if there is no value then exclude it. What I mean by a value is something in the cube cell even if its a zero..???
Any help, hints and/or tips will be greatly appreciated...