Find the concern Cube of any Dimension

Post Reply
mangphung
Posts: 9
Joined: Thu Nov 18, 2010 10:59 am
OLAP Product: TM1
Version: 9.5.2
Excel Version: 2007
Location: Bangkok Thailand

Find the concern Cube of any Dimension

Post by mangphung »

I have the problem about sharing Dimension. There're many developer to work on this project and we have to use some Dimension together.
So if we need to modify something on any sharing Dimension, we need to know which Cube concern with the Dimension.
How can we find out easily, with out checking on every Cubes. (There're a lot of Cubes)

Thank you very much
Alan Kirk
Site Admin
Posts: 6667
Joined: Sun May 11, 2008 2:30 am
OLAP Product: TM1
Version: PA2.0.9.18 Classic NO PAW!
Excel Version: 2013 and Office 365
Location: Sydney, Australia
Contact:

Re: Find the concern Cube of any Dimension

Post by Alan Kirk »

mangphung wrote:I have the problem about sharing Dimension. There're many developer to work on this project and we have to use some Dimension together.
So if we need to modify something on any sharing Dimension, we need to know which Cube concern with the Dimension.
How can we find out easily, with out checking on every Cubes. (There're a lot of Cubes)

Thank you very much
If you can wait a week or so this will be part of the documentation functionality in the next release of TM1 Tools, along with checking for "orphaned" dimensions.

If not, I suggest that you write yourself up a quick and dirty TI to iterate through the cubes. Off the top of my head...

(a) Use the "All" subset of the }Cubes dimension as your data source;
(b) Have the name of the dimension that you want to check for as a process parameter;
(c) In the Data or Metadata tab (doesn't really matter which) use a While loop for the values 1 to 16 (or the maximum number of dims that you have in your cubes) to check the result of the TabDim rules function against the process' dimension name parameter. If they match, write the name of the cube out to a text file via an AsciiOutput function.
"To them, equipment failure is terrifying. To me, it’s 'Tuesday.' "
-----------
Before posting, please check the documentation, the FAQ, the Search function and FOR THE LOVE OF GLUB the Request Guidelines.
comma
Posts: 82
Joined: Thu Jun 03, 2010 3:50 am
OLAP Product: Cognos TM1
Version: 9.5.0 64-bit
Excel Version: 2003 SP3

Re: Find the concern Cube of any Dimension

Post by comma »

Sorry if I missed it, Alan, but what do you mean by TM1 Tools?
Windows Server 2003 Enterprise x64
Windows XP Pro 2002 SP3
Internet Explorer 7
lotsaram
MVP
Posts: 3706
Joined: Fri Mar 13, 2009 11:14 am
OLAP Product: TableManager1
Version: PA 2.0.x
Excel Version: Office 365
Location: Switzerland

Re: Find the concern Cube of any Dimension

Post by lotsaram »

If Alan can plug then I guess so can I ...
This functionality has been available in the Cubewise Extend toolbar for quite some time. (google it, but the web page is not very up to date :cry: )
Capture.JPG
Capture.JPG (46.22 KiB) Viewed 8339 times
Disclaimer. I am associated with Cubewise (at least for the immediate present).
Alan Kirk
Site Admin
Posts: 6667
Joined: Sun May 11, 2008 2:30 am
OLAP Product: TM1
Version: PA2.0.9.18 Classic NO PAW!
Excel Version: 2013 and Office 365
Location: Sydney, Australia
Contact:

Re: Find the concern Cube of any Dimension

Post by Alan Kirk »

comma wrote:Sorry if I missed it, Alan, but what do you mean by TM1 Tools?
That's TM1 Tools:
http://forums.olapforums.com/viewtopic.php?f=21&t=2515

We charge a lot less than Cubewise, but of course you get what you pay for. :D

(It also explains why it's been so long since the last release...)
"To them, equipment failure is terrifying. To me, it’s 'Tuesday.' "
-----------
Before posting, please check the documentation, the FAQ, the Search function and FOR THE LOVE OF GLUB the Request Guidelines.
Alan Kirk
Site Admin
Posts: 6667
Joined: Sun May 11, 2008 2:30 am
OLAP Product: TM1
Version: PA2.0.9.18 Classic NO PAW!
Excel Version: 2013 and Office 365
Location: Sydney, Australia
Contact:

Re: Find the concern Cube of any Dimension

Post by Alan Kirk »

lotsaram wrote: Disclaimer. I am associated with Cubewise (at least for the immediate present).
That sounds ominous... :shock:
"To them, equipment failure is terrifying. To me, it’s 'Tuesday.' "
-----------
Before posting, please check the documentation, the FAQ, the Search function and FOR THE LOVE OF GLUB the Request Guidelines.
User avatar
garry cook
Community Contributor
Posts: 209
Joined: Thu May 22, 2008 7:45 am
OLAP Product: TM1
Version: Various
Excel Version: Various

Re: Find the concern Cube of any Dimension

Post by garry cook »

Set }Dimensions subset all as datasource, label the variable as mydim name and Other data type, put the following into data -

used=0;

# Cycle through all the cubes

count = 1;
while (count <= dimsiz('}Cubes'));
cube = dimnm('}Cubes', count);
cubeIndex=1;

# If dimensions are only used by control cubes they are still classified as unused, hence second part of if statement

While(cubeIndex <=16);
if(myDim @= tabdim(cube, cubeIndex));
asciioutput(pathway, myDim, cube);
endif;
cubeIndex = cubeIndex + 1;
end;
count=count+1;
end;

as long as you declare the pathway in prolog, this will give you a list.
lotsaram
MVP
Posts: 3706
Joined: Fri Mar 13, 2009 11:14 am
OLAP Product: TableManager1
Version: PA 2.0.x
Excel Version: Office 365
Location: Switzerland

Re: Find the concern Cube of any Dimension

Post by lotsaram »

You can find a worked TI solution here (with downloadable .pro file)
Cubewise tech tip - which cubes use which dimensions?
tomok
MVP
Posts: 2836
Joined: Tue Feb 16, 2010 2:39 pm
OLAP Product: TM1, Palo
Version: Beginning of time thru 10.2
Excel Version: 2003-2007-2010-2013
Location: Atlanta, GA
Contact:

Re: Find the concern Cube of any Dimension

Post by tomok »

You can also do it dynamically with a cube that has rules. That way changes will show immediately without the need to run an processes.

Cube - AuditCube
Dimensions - }Dimensions, }Clients, CubeDim, CubeDimMeasures

CubeDim looks like this:
Top level parent name "All_Cube_Dims" with following children 1,2,3,4,5,6,7,8,9,10,11,12... (maximum numnber of dims in model), all N elements

CubeDimMeasures looks like this:
Exists (S element), Position (N element)

Rule Code:
['Position']=n:IF(TABDIM(!}Cubes,NUMBR(!CubeDim)) @= !}Dimensions,NUMBR(!CubeDim),0);
['Exists']=S:IF(['Position']>0,'X','');
Tom O'Kelley - Manager Finance Systems
American Tower
http://www.onlinecourtreservations.com/
mangphung
Posts: 9
Joined: Thu Nov 18, 2010 10:59 am
OLAP Product: TM1
Version: 9.5.2
Excel Version: 2007
Location: Bangkok Thailand

Re: Find the concern Cube of any Dimension

Post by mangphung »

lotsaram wrote:If Alan can plug then I guess so can I ...
This functionality has been available in the Cubewise Extend toolbar for quite some time. (google it, but the web page is not very up to date :cry: )
Capture.JPG
Disclaimer. I am associated with Cubewise (at least for the immediate present).
Could you please tell me how can I get this tool ?? :roll:
Alan Kirk
Site Admin
Posts: 6667
Joined: Sun May 11, 2008 2:30 am
OLAP Product: TM1
Version: PA2.0.9.18 Classic NO PAW!
Excel Version: 2013 and Office 365
Location: Sydney, Australia
Contact:

Re: Find the concern Cube of any Dimension

Post by Alan Kirk »

mangphung wrote:
lotsaram wrote:If Alan can plug then I guess so can I ...
This functionality has been available in the Cubewise Extend toolbar for quite some time. (google it, but the web page is not very up to date :cry: )
Capture.JPG
Disclaimer. I am associated with Cubewise (at least for the immediate present).
Could you please tell me how can I get this tool ?? :roll:
See Cubewise's posting in the Partners' group:

http://forums.olapforums.com/viewtopic. ... 3288#p3288

Links are at the bottom of it.
"To them, equipment failure is terrifying. To me, it’s 'Tuesday.' "
-----------
Before posting, please check the documentation, the FAQ, the Search function and FOR THE LOVE OF GLUB the Request Guidelines.
Post Reply