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
Subset create byMDX-aliases
- 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
Yes, if the SubsetCreateByMDX statement is followed by a SubsetAliasSet statement, like SubsetAliasSet(dimName, sub1, AliasName);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
Michel
-
- 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
thank you... it helps