MDX Filter by Level (in SubsetCreateByMDX)

Post Reply
ExApplix
Posts: 103
Joined: Mon Sep 21, 2009 7:09 pm
OLAP Product: Cognos Tm1
Version: 10.2.2
Excel Version: 2016

MDX Filter by Level (in SubsetCreateByMDX)

Post 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!!!!
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: MDX Filter by Level (in SubsetCreateByMDX)

Post 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)}' );
"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.
Post Reply