MDX和PieChart

时间:2013-07-27 11:58:46

标签: mdx pie-chart dashboard

我试图通过这个简单的查询在社区仪表板框架上显示一个PieChart:

with member [Measures].[ContaComp] as 
'Iif(IsEmpty([Measures].[COUNT_COMPONENTI]), 0, [Measures].[COUNT_COMPONENTI])' 
select NON EMPTY {[Measures].[ContaComp]} ON COLUMNS,
{DIM_SESSO.All, DIM_SESSO.M, DIM_SESSO.F} on 1
from anagrafe
WHERE DIM_STATO_RECORD.A

返回此数据集:

Axis #0:
{[DIM_STATO_RECORD].[A]}
Axis #1:
{[Measures].[ContaComp]}
Axis #2:
{[DIM_SESSO].[ALL]}
{[DIM_SESSO].[M]}
{[DIM_SESSO].[F]}
Row #0: 2.145
Row #1: 1.011
Row #2: 1.134

我错了什么?图表组件上没有任何内容....即使我这个数据集可以在饼图中显示,不是吗?

以下mdx查询有什么区别?

select NON EMPTY {[Measures].[count]} ON COLUMNS,
NON EMPTY {[DIM_LOCALITA.LOCALITA].[X].Children} ON ROWS 
from [Pratiche] 
where ([DIM_STATO_RECORD].[A], [DIM_TIPO_PRATICA].[RS])

并重新生成以下数据集,与前一个数据集类似?

Axis #0:
{[DIM_STATO_RECORD].[A], [DIM_TIPO_PRATICA].[RSA13]}
Axis #1:
{[Measures].[COUNT_PRATICHE]}
Axis #2:
{[DIM_LOCALITA.LOCALITA].[X].[X1]}
{[DIM_LOCALITA.LOCALITA].[X].[X2]}
{[DIM_LOCALITA.LOCALITA].[X].[X3]}
{[DIM_LOCALITA.LOCALITA].[X].[X4]}
{[DIM_LOCALITA.LOCALITA].[X].[X5]}
{[DIM_LOCALITA.LOCALITA].[X].[X6]}
{[DIM_LOCALITA.LOCALITA].[X].[X7]}
{[DIM_LOCALITA.LOCALITA].[X].[X8]}
{[DIM_LOCALITA.LOCALITA].[X].[X9]}
{[DIM_LOCALITA.LOCALITA].[X].[X10]}
Row #0: 15
Row #1: 11
Row #2: 180
Row #3: 74
Row #4: 67
Row #5: 3.063
Row #6: 13
Row #7: 55
Row #8: 20
Row #9: 321

0 个答案:

没有答案