MDX排序不起作用

时间:2012-02-24 17:47:32

标签: mdx pentaho

我想以desending格式对一列进行排序。需要排序的MDX查询如下所示。我在使用where子句中的“[Measures]。[Count]”字段。我想要以降序格式对度量进行排序。我已经在qry.bt中使用了“ORDER”函数,我收到了错误..

/ *

SELECT 
NON EMPTY { [Operator].[Total],[Operator].[Total] .Children } ON COLUMNS, 
NON EMPTY { [Circle].[Total], [Circle].[Total] .Children } ON ROWS FROM 
[GENERATOR] 
WHERE 
( [Measures].[Count], [RoamingFlag].[INRoaming], [Date].[${yesterday}] ,           [SuccessFailureDetails].[FAILURE] )

*/

任何人都可以帮我解决问题..         感谢...

1 个答案:

答案 0 :(得分:0)

SELECT
NON EMPTY {[Operator].[Total],[Operator].[Total].Children} ON COLUMNS,
NON EMPTY ORDER({[Circle].[Total],[Circle].[Total].Children},[Measures].[Count],BASC) ON ROWS FROM [GENERATOR]
WHERE ([Measures].[Count], [RoamingFlag].[INRoaming], [Date].[${yesterday}],[SuccessFailureDetails].[FAILURE])

希望!