Subset create byMDX-aliases

Post Reply
sun
Posts: 51
Joined: Thu Feb 02, 2012 8:21 pm
OLAP Product: TM1 Cognos
Version: 9.5
Excel Version: 2003

Subset create byMDX-aliases

Post by sun »

Hello,
i have one question.

Is it possible when i create subset inTI with mdx function... for example:

IF (SubsetExists(dimName, sub1) = 1);
SubsetDestroy(dimName, sub1);
ELSE;
SubsetCreatebyMDX(sub1, '{TM1SORT( {TM1FILTERBYLEVEL( {TM1SUBSETALL( [Product] )}, 0)}, ASC)}');


ENDIF;

To turn on also aliases?

tnx,
regards
User avatar
Michel Zijlema
Site Admin
Posts: 713
Joined: Wed May 14, 2008 5:22 am
OLAP Product: TM1, PALO
Version: both 2.5 and higher
Excel Version: 2003-2007-2010
Location: Netherlands
Contact:

Re: Subset create byMDX-aliases

Post by Michel Zijlema »

sun wrote:Hello,
i have one question.

Is it possible when i create subset inTI with mdx function... for example:

IF (SubsetExists(dimName, sub1) = 1);
SubsetDestroy(dimName, sub1);
ELSE;
SubsetCreatebyMDX(sub1, '{TM1SORT( {TM1FILTERBYLEVEL( {TM1SUBSETALL( [Product] )}, 0)}, ASC)}');


ENDIF;

To turn on also aliases?

tnx,
regards
Yes, if the SubsetCreateByMDX statement is followed by a SubsetAliasSet statement, like SubsetAliasSet(dimName, sub1, AliasName);

Michel
sun
Posts: 51
Joined: Thu Feb 02, 2012 8:21 pm
OLAP Product: TM1 Cognos
Version: 9.5
Excel Version: 2003

Re: Subset create byMDX-aliases

Post by sun »

thank you... it helps
Post Reply