MDX for excluding values in "Total" TM1 subsets
Posted: Thu Mar 31, 2011 11:53 pm
Hi, pulling my hair out here, I do not want to build an alternate hierachy removing an element from the rollup so I am attempting this in subsets.
I have a Branch dimension that has a rollup heirarchy from branch through to a top node 'Division Total'.
I have a cube that holds data like FTE and Salaries and has Employee dimension with Total EMployees rollup (as well as Branch dim).
My problem is The Branch dimension rollup 'Division Total' always includes every employee and every Branch in the value even when I apply MDX in a subset to remove one particular Branch called 999. I have tried MDX EXCEPT, UNION, INTERSECT. I would have though EXCEPT would show some success.
See MDX below, I drill down on Division Total and exclude Branch 999, this displays as expected by removing 999 branch, BUT the 'Division Total' still aggregates the Branch 999 in cube results.
I have even removed the 999 EMployees from the Employee dimension via subset, the cube Division Total Still aggregates 999. but view removes 999 employees detail.
Does anyone have any suggestions or experience with something similar? Thanks in advance
I have a Branch dimension that has a rollup heirarchy from branch through to a top node 'Division Total'.
I have a cube that holds data like FTE and Salaries and has Employee dimension with Total EMployees rollup (as well as Branch dim).
My problem is The Branch dimension rollup 'Division Total' always includes every employee and every Branch in the value even when I apply MDX in a subset to remove one particular Branch called 999. I have tried MDX EXCEPT, UNION, INTERSECT. I would have though EXCEPT would show some success.
See MDX below, I drill down on Division Total and exclude Branch 999, this displays as expected by removing 999 branch, BUT the 'Division Total' still aggregates the Branch 999 in cube results.
Code: Select all
{EXCEPT(
{TM1DRILLDOWNMEMBER( {[Branch].[Division Total]},ALL,RECURSIVE ) }
,{ [Branch].[999]}
)}
Code: Select all
{FILTER( {TM1SUBSETALL( [Employee] )}, [Employee].[Branch] <> "999")}