For several days, I've been trying to write mdx select correctly, but the result I get every time is either more than the right number or an error.I have to count my orders [b]but exclude orders with Customer Flag 1 in Year 2010[/b].Basically, I have a Fact table with Orders + DIM Customer + DIM Date. Than I have:[quote] WITH MEMBER [count] as count(exists([DIM ORDERS].[ORDERS ID].children,{EXCEPT([DIM CUSTOMER].[FLAG].children,FILTER([DIM CUSTOMER].[FLAG].&[1] ,[DIM CUSTOMER].[FLAG].currentmember IS [DIM_DATE].[YEAR].&[2010]))},'FACT_ORDERS'))SELECT [count] on 0from [Cube][/quote]Where am I going wrong? Is this a correct MDX for my task. Please help me.
↧