Pick values from different version

Post Reply
tobtm1
Posts: 19
Joined: Tue Feb 17, 2015 1:01 pm
OLAP Product: TM1
Version: 10.1
Excel Version: 2010

Pick values from different version

Post by tobtm1 »

Hi,

I have a problem. I have created a rule that looks like below. In short, I would say its some kind of "statistical model". It looks for the last two months volumes and then divide that by a value called "denominiator". That value, for example 0,25 is then used to calculate forecast volume for the following months. This works perfectly and I handle shifts in year as well.

The problem though. If the user creates a new version then volume for the "last two months" are off course empty and then it doesnt work. In some way I need to get the volumes without taking the versiondimension into accoutn. Is it possible?

['NA_Volume key'] = N:

IF(ATTRS('Month',!Month,'Prev_Month') @='12',
(DB('S_aggregate','N/A','US_Dummy_Customer',ATTRS('Month',!Month,'Prev_Month'),ATTRS('Year',!Year,'Prev_Year'),'Dummy_plant',!Product aggregate,!Version,'Calculated volume') +
DB('S_aggregate','N/A','US_Dummy_Customer',ATTRS('Month',!Month,'Prev_Prev_Month'),ATTRS('Year',!Year,'Prev_Year'),'Dummy_plant',!Product aggregate,!Version,'Calculated volume')) /
DB('S_aggregate','Dummy_currency',!Customer,!Month,!Year,'Dummy_plant',!Product aggregate,!Version,'NA_Denominator'),

IF(ATTRS('Month',!Month,'Prev_Month') @='01',
(DB('S_aggregate','N/A','US_Dummy_Customer',ATTRS('Month',!Month,'Prev_Month'),!Year,'Dummy_plant',!Product aggregate,!Version,'Calculated volume') +
DB('S_aggregate','N/A','US_Dummy_Customer',ATTRS('Month',!Month,'Prev_Prev_Month'),ATTRS('Year',!Year,'Prev_Year'),'Dummy_plant',!Product aggregate,!Version,'Calculated volume')) /
DB('S_aggregate','Dummy_currency',!Customer,!Month,!Year,'Dummy_plant',!Product aggregate,!Version,'NA_Denominator'),

(DB('S_aggregate','N/A','US_Dummy_Customer',ATTRS('Month',!Month,'Prev_Month'),!Year,'Dummy_plant',!Product aggregate,!Version,'Calculated volume') +
DB('S_aggregate','N/A','US_Dummy_Customer',ATTRS('Month',!Month,'Prev_Prev_Month'),!Year,'Dummy_plant',!Product aggregate,!Version,'Calculated volume')) /
DB('S_aggregate','Dummy_currency',!Customer,!Month,!Year,'Dummy_plant',!Product aggregate,!Version,'NA_Denominator')));


Thanks!
User avatar
jim wood
Site Admin
Posts: 3958
Joined: Wed May 14, 2008 1:51 pm
OLAP Product: TM1
Version: PA 2.0.7
Excel Version: Office 365
Location: 37 East 18th Street New York
Contact:

Re: Pick values from different version

Post by jim wood »

How do the users create a version? Are you giving them admin rights? If you have some kind of template in place wouldn't it make more sense that they have to input previous volumes so the rule will kick in? After it's not like you're adding new product where you don't have history.
Struggling through the quagmire of life to reach the other side of who knows where.
Shop at Amazon
Jimbo PC Builds on YouTube
OS: Mac OS 11 PA Version: 2.0.7
tomok
MVP
Posts: 2836
Joined: Tue Feb 16, 2010 2:39 pm
OLAP Product: TM1, Palo
Version: Beginning of time thru 10.2
Excel Version: 2003-2007-2010-2013
Location: Atlanta, GA
Contact:

Re: Pick values from different version

Post by tomok »

tobtm1 wrote:The problem though. If the user creates a new version then volume for the "last two months" are off course empty and then it doesnt work. In some way I need to get the volumes without taking the versiondimension into accoutn. Is it possible?
Where is the volume coming from? Is it actual volume and you are using that to forecast? In that case just hard code the version into your formula:

Code: Select all

['NA_Volume key'] = N:

IF(ATTRS('Month',!Month,'Prev_Month') @='12',
(DB('S_aggregate','N/A','US_Dummy_Customer',ATTRS('Month',!Month,'Prev_Month'),ATTRS('Year',!Year,'Prev_Year'),'Dummy_plant',!Product aggregate,!Version','Calculated volume') +
DB('S_aggregate','N/A','US_Dummy_Customer',ATTRS('Month',!Month,'Prev_Prev_Month'),ATTRS('Year',!Year,'Prev_Year'),'Dummy_plant',!Product aggregate,!Version,'Calculated volume')) /
DB('S_aggregate','Dummy_currency',!Customer,!Month,!Year,'Dummy_plant',!Product aggregate,'Actual','NA_Denominator'),
Tom O'Kelley - Manager Finance Systems
American Tower
http://www.onlinecourtreservations.com/
tobtm1
Posts: 19
Joined: Tue Feb 17, 2015 1:01 pm
OLAP Product: TM1
Version: 10.1
Excel Version: 2010

Re: Pick values from different version

Post by tobtm1 »

Thanks for your replies... Even if your answers wasnt spot on they made me think and I will probably take the volumes from another cube where version is always the same.

:)
tobtm1
Posts: 19
Joined: Tue Feb 17, 2015 1:01 pm
OLAP Product: TM1
Version: 10.1
Excel Version: 2010

Re: Pick values from different version

Post by tobtm1 »

...or not. Need to think again...
Post Reply