Page 1 of 1

MDX Filter by Level (in SubsetCreateByMDX)

Posted: Wed May 05, 2010 12:40 am
by ExApplix
In TI we can create Subsets based on the FilterByLevel e.g

Code: Select all

SubsetCreateByMDX('MySubsetName', '{TM1FILTERBYLEVEL( {TM1SUBSETALL([MyDimensionName] )}, 0)}');
will select the Zero Level elements.

but I want to select the Level Zero and the Level 1 elements at the same time. Please tell me how can I do it using the above MDX

Please help!!!!

Re: MDX Filter by Level (in SubsetCreateByMDX)

Posted: Wed May 05, 2010 2:12 am
by Alan Kirk
ExApplix wrote:In TI we can create Subsets based on the FilterByLevel e.g

Code: Select all

SubsetCreateByMDX('MySubsetName', '{TM1FILTERBYLEVEL( {TM1SUBSETALL([MyDimensionName] )}, 0)}');
will select the Zero Level elements.

but I want to select the Level Zero and the Level 1 elements at the same time. Please tell me how can I do it using the above MDX

Code: Select all

SubsetCreatebyMDX('SubsetName', '{TM1FILTERBYLEVEL( {TM1SUBSETALL( [DimName] )}, 0,1)}' );