excel 中计算的度量的 SSAS 总计不起作用

SSAS Grand Total for calculated measure in excel not working

我有一个 ssas 多维数据集,其中包含一个名为 cumulative ptp's 的计算成员。 除了显示 #Value! 的总计外,一切似乎都在 excel 中正常工作。我不确定问题出在哪里。我添加了几张我所做的照片。任何帮助将不胜感激。提前致谢。

IIF
(
[Day-Month Analysis].[Day].FIRSTCHILD = [Day-Month Analysis]. [Day].CURRENTMEMBER,

 Sum(
{[Day-Month Analysis].[Day].FIRSTCHILD:[Day-Month Analysis].  [Day].CURRENTMEMBER},
[Measures].[Sum of IsPTP]
)
,  SUM(Measures.[Sum of IsPTP])
)

所以我下载了那个扩展,MDX 错误是: "Range operator (:) operands' have different levels; they must be the same"

试试这个:

Sum(
{[Null:[Day-Month Analysis].[Day].CURRENTMEMBER},
[Measures].[Sum of IsPTP]
)

我认为您不需要 IIf。如果这不起作用,请进一步描述 [Day] 层次结构中的内容。