Cognos TM1: divided by the sum of the year

Post Reply
Wirt
Posts: 37
Joined: Fri Feb 21, 2014 9:55 am
OLAP Product: Cognos TM1
Version: 10.1
Excel Version: 10

Cognos TM1: divided by the sum of the year

Post by Wirt »

hello everyone,

Need help in the implementation of rules in Cognos TM1:

cube has dimension "period" - jan-2013 ... dec-2013, 2014, jan-2014 ... data for 2013 are made by hand, and for 2014 should
considered as

['эл1','jan-2014'] = ['эл1','jan-2013'] \ ['Total 2013']; ...

each month in 2013 divided by the sum for 2013, so we get the data for 2014.

To use in the calculation of previous period use DIMNM (DIMIX), but the data of the month divided by the sum of the year have not yet obtained.

thank you
lotsaram
MVP
Posts: 3706
Joined: Fri Mar 13, 2009 11:14 am
OLAP Product: TableManager1
Version: PA 2.0.x
Excel Version: Office 365
Location: Switzerland

Re: Cognos TM1: divided by the sum of the year

Post by lotsaram »

To have a generic rule with DB() reference rather than using [ ] and having to hand-code for each single month you will need 2 attributes, one for "same month last year" and one for "Total Year Parent". Your resulting rule would then look something like.
[ 'period':{'jan-2014','feb-2014','mar-2014'....'dec-2014'} ] =
DB( 'cube', !dim1, ... AttrS( 'period', !period, 'same month last year' ) ) /
DB( 'cube', !dim1, ... AttrS( 'period', AttrS( 'period', !period, 'same month last year' ), 'total year parent' );
Please place all requests for help in a public thread. I will not answer PMs requesting assistance.
Wirt
Posts: 37
Joined: Fri Feb 21, 2014 9:55 am
OLAP Product: Cognos TM1
Version: 10.1
Excel Version: 10

Re: Cognos TM1: divided by the sum of the year

Post by Wirt »

Thanks, I'll try as you said
Post Reply