Hi all,
I have created a TI with the following script in the Metadata tab:
Code: Select all
IF(SubsetExists('T3',vBLI_DRILL)=0);
SubsetCreate('T3', vBLI_DRILL);
ENDIF;
SubsetElementInsert('T3', vBLI_DRILL, vPROJECT,1);
SubsetCreatebyMDX(vBLI_nLevel, '{TM1FILTERBYLEVEL( {TM1DRILLDOWNMEMBER({[T3].['|vBLI_DRILL|']}, ALL, RECURSIVE )}, 0)}');
vBLI (a budget line item code)
vBLI_DRILL (has the following expression:
Code: Select all
vBLI_DRILL=vBLI|' (DRILL)';
Code: Select all
vBLI_nLevel=vBLI|' (nLevel)';
The second part inserts vProject to the subset. vProject is the lowest level of detail in the source data, but is a consolidated element that already exists in the T3 dimension. Therefore all of it's children gets added to the subset too.
The last part of the code attempts to create a subset by mdx based on the static subset that has been created and names it the BLI code followed by " (nLevel)". I am trying to get to a list of n level elements under the vProjects and save as a subset.
The mdx code works fine in subset editor when you substitute the ['|vBLI_DRILL|'] for the subset name. However the TI fails with the following error message:
.Error: MetaData procedure line (32): Unable to register subset
Any advice would be much appreciated.