Writing MDX via TI

Post Reply
bunchukokoy
Regular Participant
Posts: 197
Joined: Thu Dec 03, 2009 8:47 am
OLAP Product: IBM Cognos TM1
Version: 10.2.2.x
Excel Version: 2010
Location: Singapore

Writing MDX via TI

Post by bunchukokoy »

Guys,

Good morning! :D

I just wanna know, is there a way I can write an MDX in the Expression window via TI? And if there is, can you please mention how. Thanks!

(You are highly appreciated) :D

bunchukokoy
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: Writing MDX via TI

Post by Alan Kirk »

bunchukokoy wrote: I just wanna know, is there a way I can write an MDX in the Expression window via TI? And if there is, can you please mention how. Thanks!
Look in the Help documents for the TI function SubsetCreatebyMDX.
"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.
bunchukokoy
Regular Participant
Posts: 197
Joined: Thu Dec 03, 2009 8:47 am
OLAP Product: IBM Cognos TM1
Version: 10.2.2.x
Excel Version: 2010
Location: Singapore

Re: Writing MDX via TI

Post by bunchukokoy »

Thanks! Allan,

:D

bunchukokoy
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: Writing MDX via TI

Post by lotsaram »

RTM!
9.5.1 Reference Guide (verbatim) wrote:SubsetCreateByMDX

This is a TM1® TurboIntegrator function, valid only in TurboIntegrator processes.

This function creates a public subset based on a passed MDX expression.
Syntax

SubsetCreatebyMDX(SubName, MDX_Expression);

Argument


Description

SubName


The name you want to assign to the subset.

MDX_Expression


An MDX expression that returns a subset.
Example

SubsetCreatebyMDX('0-level months', '{TM1SORT( {TM1FILTERBYLEVEL( {TM1SUBSETALL( [month] )}, 0)}, ASC)} ' );

This example creates a public subset named '0-level months' based on an MDX expression that returns a subset consisting of all 0-level elements in the Month dimension, sorted in ascending alphabetical order.
bunchukokoy
Regular Participant
Posts: 197
Joined: Thu Dec 03, 2009 8:47 am
OLAP Product: IBM Cognos TM1
Version: 10.2.2.x
Excel Version: 2010
Location: Singapore

Re: Writing MDX via TI

Post by bunchukokoy »

Thanks guys!

:D
Post Reply