2014-04-08 46 views
0

我想在同一個軸獨立實體中顯示相同層次結構的級別。例如,我希望[客戶]。[州]和[客戶]。[縣]分開顯示。MDX:Tuple包含層次結構的多個成員

我嘗試以下查詢:

select NON EMPTY 
{[Customer].[State].Members * [Customer].[County].Members} 
ON ROWS 
from [Search] 

,但得到蒙德里安錯誤:數組包含層次結構的多個成員。

是否可以做我想做的事情,基本上是扁平化的層次?

回答

0

我不知道下面將在蒙德里安的工作:

SELECT 
    {[Measures].[Internet Sales Amount]} ON 0 
,NON EMPTY 
    { 
     (
     [Customer].[Gender].[Gender].MEMBERS 
     ,[Customer].[Marital Status].[(All)] 
    ) 
    ,(
     [Customer].[Gender].[(All)] 
     ,[Customer].[Marital Status].[Marital Status].MEMBERS 
    ) 
    } ON 1 
FROM [Adventure Works]; 

菲利普,

+0

這導致成員在同一列之中。我想單獨列。 – user3410234