Using a Sequential number as a purely arbitary Element Key
Posted: Mon May 10, 2010 4:14 pm
Hi
We have a situation in a CoA where both the description and the code may change in the future. The problem in TM1 is that you can not change an element without losing the data in the cube (by doing delete then reinsert).
The idea is to replace the code used as an element with a purely arbitary number and demote the code to an alias
Thus
Becomes
Where IC01 to IC12 are internal codes which have no meaning to anyone else.
Now there are some drawbacks to this because you would have to have the alias switched on all the time to make sure the end user saw something meaningful and TM1 is designed around the idea of a stable key.
This idea is close to the sequence idea in RDBs.
Now my middle name is not Einstein and I am sure that someone else out there might have tried this to get round the problem of not having a stable key.
Did you find:
We have a situation in a CoA where both the description and the code may change in the future. The problem in TM1 is that you can not change an element without losing the data in the cube (by doing delete then reinsert).
The idea is to replace the code used as an element with a purely arbitary number and demote the code to an alias
Thus
Code: Select all
Inventory
Gross Inventories
Common Stock
100100 Common Stock - Components
100200 Common Stock - Finished Goods
100300 Common Stock - Raw Materials
100400 Common Stock - Spares
Consignment Stock
101100 Consignment Stock - Account
Contract Work in Progress
102100 Contract WIP - Direct Materials
102200 Contract WIP - Direct Labour
Code: Select all
IC01 Inventory
IC02 Gross Inventories
IC03 Common Stock
IC04 100100 Common Stock - Components
IC05 100200 Common Stock - Finished Goods
IC06 100300 Common Stock - Raw Materials
IC07 100400 Common Stock - Spares
IC08 Consignment Stock
IC09 101100 Consignment Stock - Account
IC10 Contract Work in Progress
IC11 102100 Contract WIP - Direct Materials
IC12 102200 Contract WIP - Direct Labour
Now there are some drawbacks to this because you would have to have the alias switched on all the time to make sure the end user saw something meaningful and TM1 is designed around the idea of a stable key.
This idea is close to the sequence idea in RDBs.
Now my middle name is not Einstein and I am sure that someone else out there might have tried this to get round the problem of not having a stable key.
Did you find:
- The internal codes kept on appearing to users and confusing the issue.
Rules became meaningless if you were to use the internal codes to make the rules always work since using an alias would mean you could not change it without changing the rules and the whole idea of this is to be able to change codes and descriptions without having to worry.
Similarly TIs become very difficult.