Dynamic Dimension

Post Reply
sridhar.s
Posts: 1
Joined: Tue Aug 14, 2012 8:39 am
OLAP Product: Cognos TM1
Version: 10.1.1
Excel Version: 2007

Dynamic Dimension

Post by sridhar.s »

Hi, in TM1 is it possible to create a dynamic dimension from the values of another cube.
if it is possible cud u provide some idea.
I am using 10.2 version.
Thanks
TrevorGoss
Community Contributor
Posts: 217
Joined: Thu Aug 15, 2013 9:05 am
OLAP Product: TM1
Version: 10.2.1.1
Excel Version: 14.0.6129.5000

Re: Dynamic Dimension

Post by TrevorGoss »

Hello,

yes it is quite possible, you can use the CellGetS or CellGetN function, while loop around the cube and passing the return values into another function which creates elements into the newly created dynamic dimension you want.

Any more questions, just ask.

Trevor.
Wim Gielis
MVP
Posts: 3240
Joined: Mon Dec 29, 2008 6:26 pm
OLAP Product: TM1, Jedox
Version: PAL 2.1.5
Excel Version: Microsoft 365
Location: Brussels, Belgium
Contact:

Re: Dynamic Dimension

Post by Wim Gielis »

Yes sure. For example, create a cube view as a data source, and in the Advanced > Metadata tab you simply do a DimensionElementInsert statement.
Use DimensionElementComponentAdd to add the newly inserted element as a child to a different element.
Should be rather straightforward actually, if you understand what a TI process is all about and how it operates.
Best regards,

Wim Gielis

IBM Champion 2024-2025
Excel Most Valuable Professional, 2011-2014
https://www.wimgielis.com ==> 121 TM1 articles and a lot of custom code
Newest blog article: Deleting elements quickly
TrevorGoss
Community Contributor
Posts: 217
Joined: Thu Aug 15, 2013 9:05 am
OLAP Product: TM1
Version: 10.2.1.1
Excel Version: 14.0.6129.5000

Re: Dynamic Dimension

Post by TrevorGoss »

Yes sure. For example, create a cube view as a data source, and in the Advanced > Metadata tab you simply do a DimensionElementInsert statement.
Use DimensionElementComponentAdd to add the newly inserted element as a child to a different element.
Indeed, he could also use the direct functions, to add attributes straight away if he needs to.

It seems as if the use of the world values is ambiguous, which is why I suggested going into the cells of the cube and using those values as new elements.

But you are right, TIs can handle this sort of stuff easily, so it is fairly straight forward.

Thanks.
Post Reply