Moving elements under another element with a TI process

Post Reply
cerend
Posts: 10
Joined: Fri Feb 05, 2021 7:58 am
OLAP Product: Planning Analytics
Version: 2.0.x
Excel Version: Excel 2016

Moving elements under another element with a TI process

Post by cerend »

Hello all,

Sorry if this is a very basic question, I am new to TM1.

So, I have a distributors dimension like below, and I want to move C0045 under DistributorType1-Old with a TI process. I have seen suggestions like using DimensionElementComponentAdd and DimensionElementComponentDelete to achieve this but I am hesitant about using DimensionElementComponentDelete because I do not know what will happen to data of an element once that element is deleted.
If it deletes data, how can I store it before deletion and then copy it into newly created members?

Any help will be very much appreciated,

Current Structure

Distributors
-DistributorType1
--C0045 (leaf)
--C0046 (leaf)
-DistributorType1-Old
Best Regards,

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

Re: Moving elements under another element with a TI process

Post by lotsaram »

DimensionElementDelete deletes the element (and all data associated with the element).

DimensionElementComponentDelete removes the element from one of its parents. It does not delete the element, only the relationship. All data remains as it was.
Please place all requests for help in a public thread. I will not answer PMs requesting assistance.
Post Reply