Page 1 of 1

adding elements in dimesnion using TI

Posted: Wed Sep 20, 2017 10:53 am
by raman
country
-city
- building

this is my dimension hierarchy. i want to add a element city-building not available at building position whenever a new city come. I am using TI process to make dimension.i cant edit the source file.

Re: adding elements in dimesnion using TI

Posted: Wed Sep 20, 2017 11:07 am
by BariAbdul

Re: adding elements in dimesnion using TI

Posted: Wed Sep 20, 2017 11:22 am
by raman
BariAbdul wrote: Wed Sep 20, 2017 11:07 am Hi Please go through below functions,It will give you an idea:

https://www.ibm.com/support/knowledgece ... ons_N71607

http://public.dhe.ibm.com/software/data ... 1_turb.pdf Thanks
abdul i am new to tm1, i created dimesnion according to the source file.
cityname1
building 1
building 2
cityname2
building 1
building 2
see in upper example for both cityname1 and cityname2 i want a child cityname - building not applicable.In my source i have 40 cities for every city i need to follow that.

Re: adding elements in dimesnion using TI

Posted: Wed Sep 20, 2017 10:49 pm
by Wim Gielis
You could use code like:

Code: Select all

DimensionElementInsert( ‘dim’,’’,vCity,’C’);

DimensionElementInsert( ‘dim’,’’,vCity | ‘ - Building NA’,’N’);
DimensionElementComponentAdd( ‘dim’,vCity,vCity | ‘ - Building NA’,1);