【问题标题】:how can you check the data type of a MDX Measure in icCube?如何在 icCube 中检查 MDX Measure 的数据类型?
【发布时间】:2017-10-17 14:13:11
【问题描述】:

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

现在,字符串度量在使用 PTD 视图时显示错误: “数据类型字符串不支持聚合 SUM”。

解决方案是在聚合之前检查数据类型,但你怎么能做到这一点。

在 SSAS MDX 中,有一个名为“typename()”的 VBA 函数,icCube 也存在吗?

【问题讨论】:

    标签: iccube


    【解决方案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"
    

    希望对您有所帮助。

    【讨论】:

    • 谢谢。期待新的更新。
    猜你喜欢
    • 2018-03-13
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-01-27
    • 2018-09-01
    • 1970-01-01
    相关资源
    最近更新 更多