为什么蒙德里安在计算平均值之前会进行预先评分?

时间:2013-04-30 00:12:42

标签: mdx olap pentaho mondrian

我有一个超级简单的分析报告,我正在做的就是计算一个度量的平均值。在架构中,它的默认聚合是AVERAGE。报告的另一个方面是日期过滤器,我将其限制在3个日期的列表中。

奇怪的是,蒙德里安实际上正在计算每个日期的平均值之前平均这3个数字以获得报告中显示的值。这似乎非常错误(报告只显示了一个平均值 - 没有其他字段)。

我不太了解MDX,但下面是我从mdx日志中提取的内容,如果有帮助:

With
Set [*NATIVE_CJ_SET] as 'Filter([*BASE_MEMBERS_ActivityDate], Not IsEmpty ([Measures].[AveragePosition]))'
Set [*NATIVE_MEMBERS_ActivityDate] as 'Generate([*NATIVE_CJ_SET], {[ActivityDate].CurrentMember})'
Set [*BASE_MEMBERS_Measures] as '{[Measures].[*FORMATTED_MEASURE_0]}'
Set [*BASE_MEMBERS_ActivityDate] as '{[ActivityDate].[2012-09-01 00:00:00.0],[ActivityDate].[2012-09-02 00:00:00.0],[ActivityDate].[2012-09-03 00:00:00.0]}'
Set [*CJ_COL_AXIS] as '[*NATIVE_CJ_SET]'
Member [ActivityDate].[*SLICER_MEMBER] as 'Aggregate ([*NATIVE_MEMBERS_ActivityDate])', SOLVE_ORDER=-400
Member [Measures].[*FORMATTED_MEASURE_0] as '[Measures].[AveragePosition]', FORMAT_STRING = '#,###.00;(#,###.00)', SOLVE_ORDER=400
Select
[*BASE_MEMBERS_Measures] on columns
From [SQLTestCube1_JustResults]
Where ([ActivityDate].[*SLICER_MEMBER])

0 个答案:

没有答案