1

我对 MDX 很陌生,无法弄清楚如何订购以下 MDX 查询...

WITH 
MEMBER Measures.YTD2010 as 'Aggregate(YTD(Date.CurrentMember), Measures.Value)' 
MEMBER Measures.YTD2009 as 'Aggregate(YTD(ParallelPeriod(Date.Year, 1, Date.CurrentMember)), Measures.Value)' 

SELECT { 
[Measures].YTD2009, 
[Measures].YTD2010 
} ON COLUMNS, 

Order({ [Entity].[Name].Members }, [Measures].YTD2010, DESC) ON ROWS 
FROM [Carbon] 
WHERE [Date].[Year].[2010] 

如您所见,我想订购度量“YTD2010”

非常感谢任何帮助。

4

1 回答 1

3

尝试将您的订单更改为以下内容:

Order({ [Entity].[Name].Members }, [Measures].YTD2010, BDESC) ON ROWS 

区别在于 BDESC 而不是 DESC。BDESC 告诉它打破层次结构。

于 2012-05-11T00:57:55.357 回答