在CUBESET函数中使用带有三个参数的EXISTS

时间:2013-12-16 11:15:27

标签: excel excel-formula mdx

这是我的公式,目前返回#N/A

=CUBESET("MyConnection","EXISTS([Customers].[Customer Names].MEMBERS,[Date].[Date - Calendar Month].[Calendar Month].&[201312],""CustomerMeasureGroup"")")

如果我将其更改为以下版本,则功能正常,但需要EXISTS的第三个参数才能获得集合中正确数量的项目:

=CUBESET("MyConnection","EXISTS([Customers].[Customer Names].MEMBERS,[Date].[Date - Calendar Month].[Calendar Month].&[201312])")

1 个答案:

答案 0 :(得分:2)

只是尝试将度量值组的名称设置为单引号而不是双引号。

据我所知,某些地方没有明确记录 - 但在某些情况下,MDX接受单引号或双引号来标记字符串。