WPS 加载项开发 > 表格 API 参考 > PivotTable > 属性 > PivotTable.AllocationWeightExpression 属性
返回或设置在对基于 OLAP 数据源的数据透视表执行模拟分析时,要使用的 MDX 加权表达式。可读/写

语法

表达式.AllocationWeightExpression

表达式   一个代表 PivotTable 对象的变量。

说明

AllocationWeightExpression 属性对应于“模拟分析设置”对话框中的“加权表达式”设置。必须将 AllocationMethod 属性设置为 xlWeightedAllocation,然后才能设置 AllocationWeightExpression 属性。


请参阅