“DESCENDANTS”和“0,LEAVES”是什么意思?

时间:2013-07-08 00:17:51

标签: mdx

我有以下MDX查询:

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 :(得分:1)

听到一个奇怪的(生成的?)请求;它表示在这些成员的级别中返回成员的后代(指定为第一个参数)。我想这相当于0,在这种情况下是SELF,因此相当于作为参数传递的成员:

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