SubsetCreatebyMDX in combination with parameters
Posted: Thu May 26, 2011 6:30 am
Hi,
Quick question on the use of the SubsetCreatebyMDX function in TI processes: Is it possible in some way to include parameters from your process in the create statement?
For example: I want my user to be able to indicate a certain (consolidated) element in the parameters of the process and have the process create a subset taking all level 0 children of that selected element.
I tried: SubsetCreateByMDX (vSub, '{TM1FILTERBYLEVEL( { DRILLDOWNMEMBER( {TM1SubsetBasis()}, { [Dimension].[pConsolidatedLevelElement] }) }, 0)}' ); , with pConsolidatedLevelElement being the parameter but this returns a process aborted and an error indicating he cannot resolve this statement or register the subset.
So just for my information, is what I'm trying to do even possible and if so, how can I model this in the process?
Thanks,
Mathias.
Quick question on the use of the SubsetCreatebyMDX function in TI processes: Is it possible in some way to include parameters from your process in the create statement?
For example: I want my user to be able to indicate a certain (consolidated) element in the parameters of the process and have the process create a subset taking all level 0 children of that selected element.
I tried: SubsetCreateByMDX (vSub, '{TM1FILTERBYLEVEL( { DRILLDOWNMEMBER( {TM1SubsetBasis()}, { [Dimension].[pConsolidatedLevelElement] }) }, 0)}' ); , with pConsolidatedLevelElement being the parameter but this returns a process aborted and an error indicating he cannot resolve this statement or register the subset.
So just for my information, is what I'm trying to do even possible and if so, how can I model this in the process?
Thanks,
Mathias.