说明
HsGetValue 从数据源中检索视点 (POV) 的选定维成员的数据。
如果 HsGetValue 未检索到数据,将使用为缺少/无数据标签替换选项指定的值(请参阅“ 数据选项”)。
如果 HsGetValue 和 HsSetValue 位于同一工作表上,当您选择刷新时,将仅调用 HsGetValue。如果选择提交,将调用 HsSetValue。如果 HsSetValue 成功返回,之后必须选择刷新才能调用 HsGetValue。
HsGetValue 支持对 Planning、Planning 模块、Financial Consolidation and Close 和 Tax Reporting 数据源使用一个属性维和成员(请参阅“示例 17-2”)。
示例 17-1 不含属性的示例
在此示例中,HsGetValue 从 Vision 应用程序 Plan1 多维数据集(由 MyVision 连接名称表示)返回指定 POV 对应的值。
=HsGetValue("MyVision","Account#Amount","Period#Jan","Years#2017","Scenario#Annual Contract","Version#Final","Entity#AR02-Argentina-IS_Adjustments","Package#Depreciation","Currency#Local Currency")
示例 17-2 包含属性的示例
在此示例中,HsGetValue 从 Vision 应用程序 Plan1 多维数据集(由 MyVision 连接名称表示)返回值,并且 POV 包含一个属性维和成员 Entity_Regions#NA_Reg。
注:
HsGetValue 在每个函数中仅支持一个属性维和成员。
=HsGetValue("MyVision","Account#Amount","Period#Jan","Years#2017","Scenario#Annual Contract","Version#Final","Entity#AR02-Argentina-IS_Adjustments","Package#Depreciation","Currency#Local Currency","Entity_Regions#NA_Reg")