How to create Alternative Hierarchy in TM1

Post Reply
TM1_Easy
Posts: 3
Joined: Thu Sep 04, 2014 6:45 am
OLAP Product: TM1
Version: 9.5.2
Excel Version: 2010

How to create Alternative Hierarchy in TM1

Post by TM1_Easy »

Hi,

I want to create an alternative hierarchy in Inventory dimension, this dimension already have two hierarchies and I want to create another hierarchy with different consolidation levels.

Could you please explain me how to create an alternative hierarchy.

Thank you in advance
John
declanr
MVP
Posts: 1831
Joined: Mon Dec 05, 2011 11:51 am
OLAP Product: Cognos TM1
Version: PA2.0 and most of the old ones
Excel Version: All of em
Location: Manchester, United Kingdom
Contact:

Re: How to create Alternative Hierarchy in TM1

Post by declanr »

Since you already have 2 hierarchies you can see that every element is able to have multiple parent elements and you just add them either manually or through TI with DimensionElementComponentAdd; you just have to avoid using the same consolidation names in both hierarchies if you want it to have different children.
Declan Rodger
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: How to create Alternative Hierarchy in TM1

Post by tomok »

In TM1 there really is no concept of an "alternate" hierarchy. A hierarchy is nothing more than a tree of parent/child relationships and you can have an unlimited number of those in TM1. How to create parent/child relationships is covered more than adequately in the TM1 documentation.
Tom O'Kelley - Manager Finance Systems
American Tower
http://www.onlinecourtreservations.com/
BariAbdul
Regular Participant
Posts: 424
Joined: Sat Mar 10, 2012 1:03 pm
OLAP Product: IBM TM1, Planning Analytics, P
Version: PAW 2.0.8
Excel Version: 2019

Re: How to create Alternative Hierarchy in TM1

Post by BariAbdul »

How to create parent/child relationships is covered more than adequately in the TM1 documentation.
As Tomok suggested ,You might find it in Turbo Integrator guide's chapter 9: Advance Scripting :
http://public.dhe.ibm.com/software/data ... 1_turb.pdf Thanks
"You Never Fail Until You Stop Trying......"
TM1_Easy
Posts: 3
Joined: Thu Sep 04, 2014 6:45 am
OLAP Product: TM1
Version: 9.5.2
Excel Version: 2010

Re: How to create Alternative Hierarchy in TM1

Post by TM1_Easy »

Thank you all for your kind replies. Sorry, I forgot to mention that I want to create through TI.

Could you please send me the steps to follow.

Cheers,
Jo
declanr
MVP
Posts: 1831
Joined: Mon Dec 05, 2011 11:51 am
OLAP Product: Cognos TM1
Version: PA2.0 and most of the old ones
Excel Version: All of em
Location: Manchester, United Kingdom
Contact:

Re: How to create Alternative Hierarchy in TM1

Post by declanr »

TM1_Easy wrote:Thank you all for your kind replies. Sorry, I forgot to mention that I want to create through TI.

Could you please send me the steps to follow.

Cheers,
Jo

Code: Select all

DimensionElementComponentAdd ( <Dimension Name>, <Parent Name>, <Child Name>, <weighting> );
Declan Rodger
TM1_Easy
Posts: 3
Joined: Thu Sep 04, 2014 6:45 am
OLAP Product: TM1
Version: 9.5.2
Excel Version: 2010

Re: How to create Alternative Hierarchy in TM1

Post by TM1_Easy »

Thank you Declan R :)
BariAbdul
Regular Participant
Posts: 424
Joined: Sat Mar 10, 2012 1:03 pm
OLAP Product: IBM TM1, Planning Analytics, P
Version: PAW 2.0.8
Excel Version: 2019

Re: How to create Alternative Hierarchy in TM1

Post by BariAbdul »

In addition to what Declan said,Please go through the Advance scripting of TI guide,It clearly explains all the steps in detail for example below code:

Code: Select all

The statements should appear as follows:
Prolog>
#****GENERATED STATEMENTS START****
#****GENERATED STATEMENTS FINISH****
DIMENSIONDESTROY(’unbalanced’);
DIMENSIONCREATE(’unbalanced’);
Metadata>
#****GENERATED STATEMENTS START****
#****GENERATED STATEMENTS FINISH****
DIMENSIONELEMENTINSERT(’unbalanced’,’’,G1,’n’);
DIMENSIONELEMENTINSERT(’unbalanced’,’’,TOTAL,’c’);
DIMENSIONELEMENTINSERT(’unbalanced’,’’,NORTH,’c’);
DIMENSIONELEMENTINSERT(’unbalanced’,’’,TK1,’c’);
DIMENSIONELEMENTCOMPONENTADD(’unbalanced’,TOTAL,NORTH,1.000000);
DIMENSIONELEMENTCOMPONENTADD(’unbalanced’,NORTH,TK1,1.000000);
DIMENSIONELEMENTCOMPONENTADD(’unbalanced’,TK1,G1,1.000000);
"You Never Fail Until You Stop Trying......"
Post Reply