Hi ,
I have 4 fact tables one of them has "regular" relationship with employe dimension(rest of them are many to many) I load the fact based on the template they Provide everymonth (hardly 500 transactions) for each transaction there can be Possible Employee or manager with an Indicator IsrolluptoManager(True) OR IsNOtRolluptoManager(False)
ID | Operator | EmpID | TrsactID | TransactDate | Amount | Customer | Department | ||
1 | True | abc | afeafedf | 10/10/2010 | 75 | ABC | x | ||
2 | False | abc | afeafedf | 10/10/2011 | 10 | fdf | y | ||
3 | False | abc | erteqt | 10/10/2012 | 5 | wqwtf | z | ||
4 | True | abc | afeag | 10/10/2013 | 25 | avsadg | g |
Manager Tom 100 (Since operator is false we should not roll up to Manager level stays at empID level)
abc(EmpID) 115
how we can Impement this?
I created new dimension([Flag]) with Key column and Operator attribute([Apply To Parent]) and populated that key in the fact table
when I slice with that dimension accros the measure is shows transactions with in True and transcation which are in false
Now in my mdx how can I control based on this new dimension with EmployeeDimension
WITH
MEMBER [MEASURES].[FY] AS ([Measures].[TaxRevenue])
SELECT {
,[MEASURES].[FY]
} ON 0 ,
NON EMPTY
( {DESCENDANTS( [Employee].[Manager Employee].&[201944]
) }
,Except([Trans].[Apply To Manager].members,[TRANS].[Apply To Manager].&[NO])
)FROM SALES
WHERE ([Date].[Date].&[20111023]
)
In above mdx I tried but it is not working, I guess I should not use except ,Something I need to work with Rollup Can anyone suggest right approach on this with out using Unary OPerator feature in cube since my dimension slices accross 4 measure but I
need this on only for one Measure
Any Ideas in implementation and mdx?
Thanks
Promethues