我试图通过这个简单的查询显示一个关于使用社区仪表板框架的饼图:
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