First period in time consolidation

Post Reply
Maxon
Posts: 13
Joined: Thu Jun 03, 2010 8:44 am
OLAP Product: TM1, Transformer
Version: TM1 9.5
Excel Version: 2007

First period in time consolidation

Post by Maxon »

Hi!
Cube consist of two dimensions: balance and time.
Time has hierarchy:Year 1->Q->Months...Year n->Q->Months
For the 1 item of balance for the all Quarterly values instead of Consolidation(summation) i'll take first months of quarter.
I have 10 years with quarter and months.
How i can calculate this values automatically with function?
David Usherwood
Site Admin
Posts: 1458
Joined: Wed May 28, 2008 9:09 am

Re: First period in time consolidation

Post by David Usherwood »

Create and populate an attribute to link the quarter back to the first month.
Depending on your naming convention you may be able to write a rule in the attribute cube to to the link automatically.
Maxon
Posts: 13
Joined: Thu Jun 03, 2010 8:44 am
OLAP Product: TM1, Transformer
Version: TM1 9.5
Excel Version: 2007

Re: First period in time consolidation

Post by Maxon »

David Usherwood wrote:Create and populate an attribute to link the quarter back to the first month.
Depending on your naming convention you may be able to write a rule in the attribute cube to to the link automatically.
Can you give me construction of this expression?
David Usherwood
Site Admin
Posts: 1458
Joined: Wed May 28, 2008 9:09 am

Re: First period in time consolidation

Post by David Usherwood »

If you post some examples of your dimension, yes.
User avatar
Michel Zijlema
Site Admin
Posts: 713
Joined: Wed May 14, 2008 5:22 am
OLAP Product: TM1, PALO
Version: both 2.5 and higher
Excel Version: 2003-2007-2010
Location: Netherlands
Contact:

Re: First period in time consolidation

Post by Michel Zijlema »

Maxon wrote:Hi!
Cube consist of two dimensions: balance and time.
Time has hierarchy:Year 1->Q->Months...Year n->Q->Months
For the 1 item of balance for the all Quarterly values instead of Consolidation(summation) i'll take first months of quarter.
I have 10 years with quarter and months.
How i can calculate this values automatically with function?
You could use a rule to override the standard hierarchy consolidation with the value of the first month of the quarter, f.i.:

['balance'] = C: IF(ElLev('period',!period) = 1, DB('Cube', ..., ElComp('period', !period, 1), ...), STET);

where ElLev determines the level of the element in the hierarchy and the quarters are assumed to be on level 1 and where ElComp determines the first child of the consolidated (quarter) element. If tha same logic applies to years (take first quarter) you could use ElLev('period',!period) > 0 instead of ElLev('period',!period) = 1.

Michel
Post Reply