How to get dimensions and column values used while generatin

Post Reply
AmeyJoshi
Posts: 4
Joined: Wed Mar 05, 2014 9:58 pm
OLAP Product: Tm1
Version: 10.1
Excel Version: 2010

How to get dimensions and column values used while generatin

Post by AmeyJoshi »

Hi Experts,

One of our TM1 architecture tool users creates '.cma' file by clicking on export dimension. Now we have to get same data by running mdx query in TM1 through ETL Tool - DataStage. What columns and rows to select in mdx query?

For eg:- Dimension is Branch.
Will the query be ... select {[Branch].members} on columns,{[Branch].members} on rows from mycube...? :roll:

Appreciate all help!!

Thanks in Advance,
winsonlee
Regular Participant
Posts: 180
Joined: Thu Jul 01, 2010 3:06 am
OLAP Product: Cognos Express
Version: 9.5
Excel Version: 2007
Location: Melbourne, Australia

Re: How to get dimensions and column values used while gener

Post by winsonlee »

select {TM1Subsetall( [Branch] ) } ON COLUMNS, {TM1SUBSETALL( [Dimension2] ) } ON ROWS FROM [mycube]

You cant have column and rows from the same dimension.
winsonlee
Regular Participant
Posts: 180
Joined: Thu Jul 01, 2010 3:06 am
OLAP Product: Cognos Express
Version: 9.5
Excel Version: 2007
Location: Melbourne, Australia

Re: How to get dimensions and column values used while gener

Post by winsonlee »

You can try the mdx on control cube , eg }ElementAttributes_Branch.
This will give you the list of elements in the dimension and also the attributes that attach to the dimension.
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: How to get dimensions and column values used while gener

Post by lotsaram »

AmeyJoshi wrote:One of our TM1 architecture tool users creates '.cma' file by clicking on export dimension. Now we have to get same data by running mdx query in TM1 through ETL Tool - DataStage. What columns and rows to select in mdx query?
You may well be searching up a dead end.
A cma file contains the complete dimension structure of leaf members into nodes/hierarchies. That is it encodes the parent-child relationships (including hierarchy weighting). This information is not available in any cubes (unless you were to create these cubes yourself). Such information is however readily available with dimension information function cells from WITHIN TM1 itself. TM1 also has a quite capable script based ETL tool included which could export such information to a flat file (in a much better format than a cma file for consumption by another tool or DB). If you need to extract such information from TM1 I believe you would be much better off coding this internally within TM1 using turbointegrator script.
Please place all requests for help in a public thread. I will not answer PMs requesting assistance.
AmeyJoshi
Posts: 4
Joined: Wed Mar 05, 2014 9:58 pm
OLAP Product: Tm1
Version: 10.1
Excel Version: 2010

Re: How to get dimensions and column values used while gener

Post by AmeyJoshi »

winsonlee wrote:You can try the mdx on control cube , eg }ElementAttributes_Branch.
This will give you the list of elements in the dimension and also the attributes that attach to the dimension.

Sorry for the late reply. I have got the attributes values for Branch dimension through }ElementAttributes_Branch.
Now how can I add attribute name in mdx query?

Attribute names for }ElementAttributes_Branch---> Lvl_2_type, Name

Query which I tried:-> (which failed :( )

Code: Select all

select  {[TIME].[2013]}  on columns, {TM1SubsetAll ([Branch].[Lvl_2_Type]} on rows from mycube;
Appreciate all your help!!
Thanks in Advance!!
Post Reply