MDX Expression : Dynamic Subset ( all leaf level elements of multiple consolidated elements of a Dimension)
Posted: Sat Nov 19, 2016 3:35 pm
Hi Guyzzz,
Need help
I have a Dimension : DIM with say 10 level Hierarchy.
Have few elements at level ( say 4,5 or 6 any level except the top and leaf level) : AAA, BBB, CCC, DDD, EEE
My requirement is to create a Subset : SUB of Dimension : DIM with all the leaf level elements under these parent elements (AAA, BBB, CCC, DDD)
then will use this subset to create a datasource view for a TI process.
Currently I am using, code like this -
cDimName = 'DIM' ;
cConsol = 'AAA' ;
ExecuteProcess('Bedrock.Dim.Sub.Create.Consolidation.Leaf',
'pDimension', cDimName,
'pSubset', cSubset,
'pConsol', cConsol,
'pAddtoSubset', 0,
'pExclusions', 'Other',
'pDelimiter', '&',
'pDebug', pDebug
) ;[/i]
problem with this code is, I can only create a subset for a single parent out of(AAA, BBB, CCC, DDD)
Need a dynamic subset for this.
Can you help me with the required MDX Expression.
Thnaks,
Need help
I have a Dimension : DIM with say 10 level Hierarchy.
Have few elements at level ( say 4,5 or 6 any level except the top and leaf level) : AAA, BBB, CCC, DDD, EEE
My requirement is to create a Subset : SUB of Dimension : DIM with all the leaf level elements under these parent elements (AAA, BBB, CCC, DDD)
then will use this subset to create a datasource view for a TI process.
Currently I am using, code like this -
cDimName = 'DIM' ;
cConsol = 'AAA' ;
ExecuteProcess('Bedrock.Dim.Sub.Create.Consolidation.Leaf',
'pDimension', cDimName,
'pSubset', cSubset,
'pConsol', cConsol,
'pAddtoSubset', 0,
'pExclusions', 'Other',
'pDelimiter', '&',
'pDebug', pDebug
) ;[/i]
problem with this code is, I can only create a subset for a single parent out of(AAA, BBB, CCC, DDD)
Need a dynamic subset for this.
Can you help me with the required MDX Expression.
Thnaks,