Hello all,
I am trying to create a rolling forecast where the forecast for a month is the actual value from the previous month.
There is a control cube with the following:
-a rfGlobalVars Dimension which contains ForecastMonth,ForeCastYear,CurrentMonth,and CurrentYear.
- a rfString Dimension
There is a rfRevenueForecast Cube which contains the following dimensions:
-rfService
-ppLineItemCode
-rfScenario (actual or forecast)
-bpmYear
-bpmPeriod (which contains the months) -- I have created an attribute for this dimension called 'MonthVals' which simply numbers months 1-12
-rfMeasure
I am not sure how to go about creating a rule that calls the month/year from the control cube and places the value from the previous months actual into the forecast for the next month. Any helpful tips/suggestions/advice?
Thanks in advance,
James
Rolling Forecast Rule
- Martin Ryan
- Site Admin
- Posts: 2003
- Joined: Sat May 10, 2008 9:08 am
- OLAP Product: TM1
- Version: 10.1
- Excel Version: 2010
- Location: Wellington, New Zealand
- Contact:
Re: Rolling Forecast Rule
Code: Select all
['Measure'] = N: if(!Year@=DB('ControlCube', 'ForecastYear', 'String') & !Month@= DB('ControlCube', 'ForecastMonth'),
DB('ThisCube', !Dim1, !Dim2, !Dim3, if(!Month@='Jan', attrs('Year', !Year, 'Previous'), !Year), attrs('Month', !Month, 'Previous'), 'Actual', 'Measure'), stet);
Note the feeder will need a "Next" attribute, e.g. attrs('Month', !Month, 'Next');
Martin
Please do not send technical questions via private message or email. Post them in the forum where you'll probably get a faster reply, and everyone can benefit from the answers.
Jodi Ryan Family Lawyer
Jodi Ryan Family Lawyer
-
- Posts: 5
- Joined: Mon Jun 11, 2012 3:45 pm
- OLAP Product: Tm1
- Version: Version 9.5.2
- Excel Version: 2010
Re: Rolling Forecast Rule
Great! Thanks for the help.