I have written MDX query below Here what i am doing try to getting result of tom based on the multiple condition applying in IIF function :
WITH
SET [kpi_study] AS
{[study].[study].[BHC June12]}
SET [geographic] AS
{[territory.market_hierarchy].[state].[MP]}
SET [brand] AS
{[brand.brand_hierarchy].[brand].[Gold Flake (Unspecified)]}
SET [edu12] AS
IIF
(
'All' = 'All'
,[education].[education].MEMBERS
,[education].[education].[All]
)
SET [town] as
IIF(
'All' = 'All'
,[territory.market_hierarchy].[town_class].MEMBERS
,[territory.market_hierarchy].[town_class].[All]
)
SET [occp] as
IIF(
'All' = 'All'
,[occupation].[occupation].MEMBERS
,[occupation].[occupation].[All]
)
MEMBER [Measures].[t] AS
SUM(([edu12],[town],[occp]),[Measures].[tom])
SELECT
NON EMPTY
{[Measures].[t]} ON COLUMNS
FROM [funnel_analysis]
WHERE
{[kpi_study]*[geographic]*[brand]}
but getting some error.For single iif function its working fine ie: **(SUM([edu12],[Measures].[tom]))**
unable to find out where i am doing wrong for multiple.