PivotTable.AllocationWeightExpression 属性 (Excel)

返回或设置在对基于 OLAP 数据源的数据透视表执行模拟分析时,要使用的 MDX 加权表达式。 读/写。

语法

表达式AllocationWeightExpression

表达 一个代表 数据透视表 对象的变量。

备注

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

支持和反馈

有关于 Office VBA 或本文档的疑问或反馈? 请参阅 Office VBA 支持和反馈,获取有关如何接收支持和提供反馈的指南。