我写了一个查询,如下所述:
WITH
SET [kpi_study] AS
{[study].[study].[BHC June12]}
SET [geographic] AS
{[territory.market_hierarchy].[state].[HP]}
SET [brand] AS
{[brand.brand_hierarchy].[brand].[Gold Flake (Unspecified)]}
SET [edu12] AS
IIF
(
'All' = 'All'
,[education].[education].MEMBERS
,[education].[education].[All]
)
SELECT
NON EMPTY
{[Measures].[tom]} ON COLUMNS
FROM [funnel_analysis]
WHERE
{[kpi_study]*[geographic]*[brand]};
结果:汤姆:4.19
如果我通过(SSC/HSC )而不是全部,任何其他值总是得到相同的值。可以在我做错的地方帮助我。这意味着 IIF 功能无法正常工作。