2015-10-29 145 views
1

我想在我的SSAS多維數據集中創建一個計算並按幾個維度過濾一個度量。MDX按維度屬性過濾計算的成員

隨着一維中的過濾器它的工作原理是這樣的:

(
    [Employee categorie].[description].&[local management], 
    [Employee categorie].[description].&[topmanagement], 
    [Measures].[Count] 
) 

但我怎麼能包括在第二尺寸的過濾器?

[retirement].[description].&[partial early retirement] 

這是功能性的背景: 我想從總人數只有誰是部分提前退休的經理有。 這只是我必須解決的幾個任務中的一個例子。

+1

在您的第一個代碼段中的那個元組實際上工作嗎? - 對我來說看起來沒有任何有效的mdx – whytheq

回答

3

這看起來並不像一個有效的元組以我爲你在這同一層級的兩個成員:

(
    [Employee categorie].[description].&[local management], 
    [Employee categorie].[description].&[topmanagement], 
    [Measures].[Count] 
) 

這是確定的:

(
    [Employee categorie].[description].&[local management], 
    [retirement].[description].&[partial early retirement], 
    [Measures].[Count] 
) 

您可以添加兩個元與此相同的維度:

(
    [Employee categorie].[description].&[local management], 
    [retirement].[description].&[partial early retirement], 
    [Measures].[Count] 
) 
+ 
(
    [Employee categorie].[description].&[topmanagement], 
    [retirement].[description].&[partial early retirement], 
    [Measures].[Count] 
)