我正从JfreeChart转到CCC。我可以使用MDX查询显示CCC图表。 我有一个问题:在我的MDX查询中我必须更改哪些内容允许在JfreeChart组件中显示饼图,但在CCC中却没有?查询如下:
with member [Measures].[Total] as '([DIM_X].[A], [Measures].[COUNT])'
member [Measures].[Perc] as '([Measures].[COUNT] * 100) / [Measures].[Total]'
set [Percent over threshold] as 'Filter([DIM_X].[A].Children, [Measures].[Perc] >= 4)'
member [DIM_X].[Others] as 'Aggregate({Filter([DIM_X].[A].Children, [Measures].[Perc] < 4)})'
select NON EMPTY {[Measures].[COUNT]} ON COLUMNS,
NON EMPTY {[Percent over threshold],[DIM_X].[Others]} ON ROWS
from [CUBE]
为什么此查询的结果集显示在JFreeChart组件的饼图中而不是CCC中? 另一个细节:在CCC组件中,我能够显示发布的查询行或条形图的结果集。