Page 1 of 1

TM1 TI - Update Dimension Weight

Posted: Tue Jun 04, 2013 9:31 am
by mama
Hi,
I am recreating a parent/child hierarchie in a dimension with a TI process. This runs smooth, it's no problem at all. At the end I am getting a nice unbalanced hierarchie which is needed for the chart of accounts.
But now I am struggling with the manipulation of the weight.
Is there a TI function which allows to update the weight? It should be -1 for cost accounts.
Thanks!

Re: TM1 TI - Update Dimension Weight

Posted: Tue Jun 04, 2013 9:35 am
by declanr
Just add the following into the TI:

Code: Select all

DimensionElementComponentDelete ( sDim, sParent, sChild );
DimensionElementComponentAdd ( sDim, sParent, sChild, -1 );
That will first break the current relationship and then create a new one with a negative weighting.

Re: TM1 TI - Update Dimension Weight

Posted: Tue Jun 04, 2013 11:08 am
by mama
...it works like charm. Thanks a lot!