2013-07-08 90 views
1

我有以下MDX查詢:「DESCENDANTS」和「0,LEAVES」是什麼意思?

select {[Measures].[Internet Sales Amount]} on axis(0), 
DESCENDANTS({[Customer].[Education].[All Customers].[Bachelors], 
      [Customer].[Education].[All Customers].[Graduate Degree]},0,LEAVES) on axis(1) , 
DESCENDANTS({[Geography].[Country].[All Geographies].[Australia], 
     [Geography].[Country].[All Geographies].[Canada], 
     [Geography].[Country].[All Geographies].[France]},0,LEAVES) on axis(2) 
from [Adventure Works] 

什麼DESCENDANTS0, LEAVES是什麼意思?

回答

1

聽起來奇怪(生成?)請求;它意味着返回成員級別的成員後代(指定爲第一個參數)。我猜這相當於0,SELF在這種情況下,因此相當於成員通過的參數:

{ 
[Geography].[Country].[All Geographies].[Australia], 
[Geography].[Country].[All Geographies].[Canada], 
[Geography].[Country].[All Geographies].[France] 
}