如何在icCube中检查MDX Measure的数据类型?

时间:2017-10-17 14:13:12

标签: iccube

我在STATS维度中使用项目到目前的计算成员来聚合数据。但我也在使用字符串度量(例如显示一些文本)。

现在,字符串度量在使用PTD视图时显示错误: "数据类型字符串"。

不支持聚合SUM

解决方法是在聚合之前检查数据类型,但是如何做到这一点。

在SSAS MDX中,有一个名为" typename()"的VBA函数,也为icCube做了什么?

1 个答案:

答案 0 :(得分:1)

由于icCube 6.5.1可以使用以下MDX功能:

VarTypeName   ( arg ) : the type of the MDX argument
ValueTypeName ( arg ) : the type of the MDX arguement when evaluated

例如:

VarTypeName   ( [Measures].[Amount] ) : "measure" 
ValueTypeName ( [Measures].[Amount] ) : "double"

希望有所帮助。