SubsetCreatebyMDX
Posted: Tue Jun 28, 2011 9:38 pm
I'm trying to create a drill through process that uses a dynamic subset.
I almost have it working.
But I seem to have a catch 22.
If the Subset does not exist, it works great.
If the subset exists, it needs to be deleted.
But, the subset is being used by a view, so when I try and use DestroySubset, I'm told I can't because the subset is used by a view.
I have had only limited success in destroying or changing the view (to, say, point to the default subset).
Is there anyway to change the mdx in an existing subset using TI?
How do I get around this?
I don't want to have to create a new subset everytime the drill through is invoked.
I almost have it working.
Code: Select all
SubsetCreatebyMDX('PeopleDrillOrganization1','{ DRILLDOWNMEMBER( {TM1FILTERBYPATTERN( {TM1SUBSETALL( [Organization] )}, "' | forecastOrg | '*")}, {[Organization].[' | forecastOrg | ']} ) }' );
If the Subset does not exist, it works great.
If the subset exists, it needs to be deleted.
But, the subset is being used by a view, so when I try and use DestroySubset, I'm told I can't because the subset is used by a view.
I have had only limited success in destroying or changing the view (to, say, point to the default subset).
Is there anyway to change the mdx in an existing subset using TI?
How do I get around this?
I don't want to have to create a new subset everytime the drill through is invoked.