Dim Subset MDX for filter by leaf node, & return level 2+?
Posted: Tue Feb 07, 2012 12:02 am
Hi, this is an MDX for TM1 subset create question.
We have a dimension that has attributes for the 0 level items (not the rollups). We want to filter by the attribute, display the leaf level items, as well as levels 2, 3 & 4 but not level 1.
I have tried a few functions in MDX but can't seem to get it to work...I know you can filter on levels such as
{TM1FILTERBYLEVEL( {Descendants([Project].[Product Type] )}, 0,2,3,4)}
but I also need the MDX to include being able to filter by attribute that is only attached to the leaf level.
Does anyone have any suggestions?
Many thanks
Terri
We have a dimension that has attributes for the 0 level items (not the rollups). We want to filter by the attribute, display the leaf level items, as well as levels 2, 3 & 4 but not level 1.
I have tried a few functions in MDX but can't seem to get it to work...I know you can filter on levels such as
{TM1FILTERBYLEVEL( {Descendants([Project].[Product Type] )}, 0,2,3,4)}
but I also need the MDX to include being able to filter by attribute that is only attached to the leaf level.
Does anyone have any suggestions?
Many thanks
Terri