TM1 Duplicate Element Delete Process
Posted: Fri Oct 15, 2010 7:40 pm
I have searched through the forums and was able to find any help regarding a possible process that would delete duplicate elements within the same roll-up/hierarchy.
I have a products dimensions with 9 different roll-ups, and one (and most likely many others) of my elements actually appears 11 times. I have confirmed that it is showing up in the same roll-up twice, same element with the same attributes, data, etc. Since I am dealing with around 5000 unique elements in this dimension I was hoping there would possibly be a process that can be written to delete the extra elements?
Example of the error:
Σ-Material Type
Σ-Market Segment
_____Σ-MKT_A
________n-PARTNUMBER_12345
________n-PARTNUMNER_12346
_______n-PARTNUMBER_12347
_____Σ-MKT_B
________n-PARTNUMBER_12340
________n-PARTNUMBER_12345
Σ-End Customer Group
So Market Segment is one of multiple roll-ups, but with in one single roll-up (market segments) the same element is appearing twice.
I was hoping to write a process that would do something similar to the following:
IF element exists more than once in a given roll-up,
Delete all those elements, then, Create that element once.
Else,
STET
Any thoughts? I am relatively new to TM1, I have been working on it all day every day for a month and a half now.
THANKS!
I have a products dimensions with 9 different roll-ups, and one (and most likely many others) of my elements actually appears 11 times. I have confirmed that it is showing up in the same roll-up twice, same element with the same attributes, data, etc. Since I am dealing with around 5000 unique elements in this dimension I was hoping there would possibly be a process that can be written to delete the extra elements?
Example of the error:
Σ-Material Type
Σ-Market Segment
_____Σ-MKT_A
________n-PARTNUMBER_12345
________n-PARTNUMNER_12346
_______n-PARTNUMBER_12347
_____Σ-MKT_B
________n-PARTNUMBER_12340
________n-PARTNUMBER_12345
Σ-End Customer Group
So Market Segment is one of multiple roll-ups, but with in one single roll-up (market segments) the same element is appearing twice.
I was hoping to write a process that would do something similar to the following:
IF element exists more than once in a given roll-up,
Delete all those elements, then, Create that element once.
Else,
STET
Any thoughts? I am relatively new to TM1, I have been working on it all day every day for a month and a half now.
THANKS!