Page 1 of 1
TM1 Dimensions
Posted: Tue Mar 26, 2019 7:42 pm
by Peter Picazio
Is it possible to create a new dimension and then assign/add it to an existing cube?
Re: TM1 Dimensions
Posted: Tue Mar 26, 2019 7:45 pm
by Wim Gielis
In some TM1 clients, yes. But as this exercise happens so infrequently (unless the cube architecture is way off) the usual practice is to export the data, backup rules, views, security, ..., destroy the cube, recreate with an additional dimension, and add the earlier items all back in. It’s not a trivial task in most cases.
Re: TM1 Dimensions
Posted: Tue Mar 26, 2019 7:47 pm
by Peter Picazio
Thank you Wim
Re: TM1 Dimensions
Posted: Tue Mar 26, 2019 10:53 pm
by lotsaram
Wim Gielis wrote: ↑Tue Mar 26, 2019 7:45 pm
... the usual practice is to export the data, backup rules, views, security, ..., destroy the cube, recreate with an additional dimension, and add the earlier items all back in. It’s not a trivial task in most cases.
Unless you have bedrock version 4. In which case it is actually a trivial task.
(any references in the model like DB or CellGetN to the changed cube will still need to be updated manually. But the actual action of adding, removing or replacing a dimension in an existing cube is a one click operation.)
Re: TM1 Dimensions
Posted: Tue Mar 26, 2019 10:58 pm
by Wim Gielis
lotsaram wrote: ↑Tue Mar 26, 2019 10:53 pm
Wim Gielis wrote: ↑Tue Mar 26, 2019 7:45 pm
... the usual practice is to export the data, backup rules, views, security, ..., destroy the cube, recreate with an additional dimension, and add the earlier items all back in. It’s not a trivial task in most cases.
Unless you have bedrock version 4. In which case it is actually a trivial task.
(any references in the model like DB or CellGetN to the changed cube will still need to be updated manually. But the actual action of adding, removing or replacing a dimension in an existing cube is a one click operation.)
I wrote that myself too, including 4 modes:
mode 1: add a new dimension
mode 2: delete an existing dimension
mode 3: swap the order of 2 dimensions
mode 4: switch a dimension with a new one
Here's the link:
http://www.wimgielis.com/tm1_cubedimens ... ons_EN.htm
Next to that a colleague of mine wrote a TI script to also update the DB and CellGet/CellPut references when you add a dimension and assuming the dimension is added as the (new) first dimension in the cube. This full set of custom TI scripts are not mine and cannot be published here, in case someone would ask for it.
Re: TM1 Dimensions
Posted: Wed Mar 27, 2019 4:35 pm
by Bakkone
Too bad Bedrock 4 isn't publicly available yet... *hint hint*
Re: TM1 Dimensions
Posted: Wed Mar 27, 2019 7:58 pm
by lotsaram
Yeah. Soon though. Just need to iron out as many bugs as possible before the public release on GitHub. Stay tuned.
Re: TM1 Dimensions
Posted: Wed Mar 27, 2019 11:42 pm
by paulsimon
Hi
As well as CellGetNs you will also need to re-create any views on the cube with the extra dimensions. I have a utility that generates the TI script necessary to create all views on the current cube and then this can be manipulated in Excel to add a reference to the appropriate subset on the new dimension. The Ti can then be pasted into a process and run to re-create the views once the extra dimension has been added. The utility also helps with changing DBRW formula in related Excel formula, which is often the harder task. However, that can only work reliably if all the Excel sheets are in the Application Folders and therefore in the }Externals folder. If Excel sheets linked to TM1 have been developed by end users and stored on their local drives then you will need to coordinate with them before changing a cube structure like this.
However, there are two alternatives that you should consider that I don't think have been mentioned yet.
1) Consider creating another cube with the extra dimension, and populating both. This may be less work than re-creating everything that runs off the older cube, particularly if you have Cognos BI reports, etc. The downside is a certain amount of duplication of data, but if the cube is only used for reporting, it can help you to move over to the new structure more gradually.
2) Consider whether you can achieve the same use the new Hierarchy objects if you are on Planning Analytics.
Regards
Paul Simon
Re: TM1 Dimensions
Posted: Fri Mar 29, 2019 11:26 pm
by PlanningDev
Beware of the client front ends.
Anything with TM1 formulas will break (Excel with formulas, Active Forms)
In turn that means any published websheets using that cube are likely to break.
You get a little lucky with BI as Cognos reports *Might* not break since you can specify the default member to be used when none is specified. However testing is still likely required.
Haven't tested this theory in PAW but my guess is even though you may generate new views with the same name, the cube views in PAW will likley have to be re created.
Re: TM1 Dimensions
Posted: Tue Apr 23, 2019 8:32 am
by lotsaram
Bakkone wrote: ↑Wed Mar 27, 2019 4:35 pm
Too bad Bedrock 4 isn't publicly available yet... *hint hint*
Happy Easter! Bedrock 4 is
officially released on GitHub.