简体   繁体   English

是否可以在不创建数据透视表的情况下粘贴数据透视表值?

[英]Is it possible to paste PivotTable values without creating a PivotTable?

Currently I am creating a PivotTable, which I copy/paste the table as values to a separate sheet.目前我正在创建一个数据透视表,我将表作为值复制/粘贴到单独的工作表中。

Instead of doing this, through VBA, is it possible to skip creating the actual PivotTable and just paste the values?而不是通过 VBA 执行此操作,是否可以跳过创建实际数据透视表并仅粘贴值? Potentially using the PivotTable cache?可能使用数据透视表缓存? My data will change everyday, but the PivotTable fields will be the same.我的数据每天都在变化,但数据透视表字段是一样的。

Thank you!谢谢!

Yes this is possible with Power Pivot.是的,这可以通过 Power Pivot 实现。

Select the Source data and Add it Data Model in Power Pivot Select 源数据并将其添加到 Power Pivot 中的数据 Model

选择数据并添加到模型

Then goto Data-> Existing Connections -> This Workbook Data Model -> Pivot Table Report然后转到数据-> 现有连接-> 此工作簿数据 Model -> Pivot 表报告

数据模型

Once the pivot table report is created, select the report创建 pivot 表报告后,select 报告

Goto PivotTable Analyze -> OLAP Tools -> Convert to Formulas转到数据透视表分析 -> OLAP 工具 -> 转换为公式

OLAP 工具

Your pivot report will be converted to formulas linked to Data Model using Cube Function.您的 pivot 报告将使用多维数据集 Function 转换为链接到数据 Model 的公式。

You can now move individual data as you wish.您现在可以根据需要移动单个数据。

Just click Refresh All whenever the data is changed to refresh the data每当数据发生变化时,只需单击全部刷新即可刷新数据

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM