I'm building a Project dim & creating the subsets in the Epilog tab.
Some subsets filters by the Customer code of the project/s & if the project has an active status. So my code looks like....
Code: Select all
SubsetCreatebyMDX('subsetname','{HIERARCHIZE({TM1SORT({FILTER({FILTER({TM1FILTERBYLEVEL({TM1DRILLDOWNMEMBER( {[Project].[Total Projects]}, ALL, RECURSIVE)},0,1)},[Project].[Customer Code] = "customercode")},[Project].[Active Status] = "Active")},ASC)})}' );
Code: Select all
IF(vCustomerCode@='customercode' % vActiveStatus@='True');
SubsetCreatebyMDX('subsetname','{HIERARCHIZE({TM1SORT({FILTER({FILTER({TM1FILTERBYLEVEL({TM1DRILLDOWNMEMBER( {[Project].[Total Projects]}, ALL, RECURSIVE)},0,1)},[Project].[Customer Code] = "customercode")},[Project].[Active Status] = "Active")},ASC)})}' );
ENDIF;
I'm wondering if I am doing something wrong or if this isn't possible.
Many thanks
Terri