# 数据透视表

数据透视表是一种电子表格功能，能够以多种方式重新排列和汇总数据表，从而呈现同一数据的不同视图；用户通过图形化拖放字段来改变汇总的结构；这种对汇总表的旋转，或者说“透视”，正是该功能名称的由来。<sup>[1](https://documentserver.uhasselt.be/bitstream/1942/22226/1/14394562015838.pdf)</sup> 这一概念由皮托·萨拉斯（Pito Salas）于1986年在莲花公司（Lotus）任职期间发明，1991年随Lotus Improv面世而进入用户视野，此后微软Excel采纳了该功能，并成为第一个使用“数据透视表”这一术语的产品。<sup>[2](https://scraperwiki.com/2014/07/the-history-of-pivot-table/)</sup><sup> • </sup><sup>[3](https://qz.com/1903322/why-pivot-tables-are-the-spreadsheets-most-powerful-tool)</sup>

| 关键事实 | 详情 |
|---|---|
| 定义 | 一种将数据表重新排列为不同汇总视图的功能；用户通过拖放字段改变结构，这种“透视”操作正是其名称来源<sup>[1](https://documentserver.uhasselt.be/bitstream/1942/22226/1/14394562015838.pdf)</sup> |
| 发明 | 概念由皮托·萨拉斯于1986年发明，当时任职于莲花公司<sup>[2](https://scraperwiki.com/2014/07/the-history-of-pivot-table/)</sup> |
| 首个产品 | Lotus Improv，1991年面向NeXT平台发布<sup>[4](https://instadeq.com/blog/posts/no-code-history-lotus-improv-spreadsheets-done-right-1991/)</sup> |
| 命名 | Excel是第一个实际使用“数据透视表”这一术语的产品<sup>[3](https://qz.com/1903322/why-pivot-tables-are-the-spreadsheets-most-powerful-tool)</sup> |
| Excel里程碑 | Excel 97增加了增强版数据透视表向导以及添加计算字段的功能<sup>[5](https://flylib.com/books/en/1.369.1.11/2/)</sup> |
| 典型用途 | 缩小大型数据集的范围，查看数据点之间的关系，例如哪位销售员在特定月份创造了最高收入<sup>[6](https://support.google.com/docs/answer/1272900?hl=en-CA&ref_topic=9055396)</sup> |
| 数据库对应物 | PostgreSQL的tablefunc扩展提供了crosstab函数，可生成由行名加值列构成的“数据透视表”<sup>[7](https://www.postgresql.org/docs/17/tablefunc.html)</sup> |

## 数据透视表的工作原理

数据透视表接收一张由原始记录构成的扁平表，生成汇总的交叉制表：类别占据行和列，值在单元格中聚合。用户通过图形化拖放字段来设置和改变汇总的结构，将行标签旋转到列位置再转回来，从不同角度观察同一数据。<sup>[1](https://documentserver.uhasselt.be/bitstream/1942/22226/1/14394562015838.pdf)</sup> 数据透视表也用于快速创建未加权交叉制表。<sup>[1](https://documentserver.uhasselt.be/bitstream/1942/22226/1/14394562015838.pdf)</sup>

在[Google Sheets](https://www.edgepedia.org/zh/google-sheets)中，其工作流程代表了现代实现的典型方式：用户选择源数据（其中每一列都有表头），依次选择“插入”和“数据透视表”，然后在侧边面板中向行、列和值添加字段。字段可以在类别之间拖动或移除，数据范围可以更改，Sheets还可以根据所选数据自动推荐数据透视表。当数据透视表所引用的源数据单元格发生变化时，数据透视表会刷新；双击汇总单元格会打开一个新工作表，显示底层的源行。<sup>[6](https://support.google.com/docs/answer/1272900?hl=en-CA&ref_topic=9055396)</sup> 计算字段将值扩展到简单聚合之外：值可以用SUM汇总，也可以用引用其他字段的自定义公式汇总，例如`=sum(Price)/counta(Product)`。<sup>[6](https://support.google.com/docs/answer/1272900?hl=en-CA&ref_topic=9055396)</sup>

在微软Excel中，对应的功能是数据透视表（PivotTable），它可以使用Excel表格中的数据，也可以使用外部来源的数据，如关系数据库或文本文件；刷新数据透视表会自动纳入源表中的新增和更新数据，数据透视图（PivotChart）会与关联的数据透视表同步旋转其行标签和列标签。<sup>[8](https://support.microsoft.com/en-us/excel/overview-of-pivottables-and-pivotcharts)</sup> Excel的指导文档还特别指出，数据透视表要求输入数据干净：嵌入数据中的汇总行，例如表格中间的小计，属于问题情形，推荐的做法是只使用原始数据，由数据透视表自身生成汇总。<sup>[9](https://indigosoftwarecompany.com/excel-data-analysis-pivottables-power-query-business-intelligence-techniques/)</sup>

## 源自Lotus Improv

**概念，1986年。** 皮托·萨拉斯当时在莲花公司从事研发工作，研究了人们通常如何使用电子表格，导致数据透视表诞生的概念正是出自他在[莲花开发公司](https://www.edgepedia.org/zh/lotus-development-corporation)（Lotus Development Corporation）的这项工作。<sup>[3](https://qz.com/1903322/why-pivot-tables-are-the-spreadsheets-most-powerful-tool)</sup><sup> • </sup><sup>[5](https://flylib.com/books/en/1.369.1.11/2/)</sup> 1986年，萨拉斯加入莲花公司的先进技术组（Advanced Technology Group），思考一种全新的电子表格。<sup>[4](https://instadeq.com/blog/posts/no-code-history-lotus-improv-spreadsheets-done-right-1991/)</sup>

**Improv，1991年。** 这一想法直到1991年Lotus Improv面向NeXT平台发布时才进入市场。<sup>[2](https://scraperwiki.com/2014/07/the-history-of-pivot-table/)</sup> Improv是一款多维电子表格产品，具有自然语言公式和动态视图。<sup>[4](https://instadeq.com/blog/posts/no-code-history-lotus-improv-spreadsheets-done-right-1991/)</sup> 它在核心设计上与自1979年VisiCalc以来所有电子表格的决裂之处在于，将数据、公式和视图分离，使得一张底层表可以以十二种方式透视而无需重写任何内容。<sup>[10](https://rip.so/lotus-improv.html)</sup> Lotus Improv标志着电子表格程序首次能够将命名数据集组织为更广泛的类别。<sup>[5](https://flylib.com/books/en/1.369.1.11/2/)</sup>

平台选择决定了产品的命运。1988年10月，[史蒂夫·乔布斯](https://www.edgepedia.org/zh/steve-jobs)（Steve Jobs）来到莲花公司展示他的新电脑，乔布斯说服莲花公司将数据透视表软件开发为NeXT电脑的独占产品。<sup>[4](https://instadeq.com/blog/posts/no-code-history-lotus-improv-spreadsheets-done-right-1991/)</sup><sup> • </sup><sup>[3](https://qz.com/1903322/why-pivot-tables-are-the-spreadsheets-most-powerful-tool)</sup> 各办公室的用户选择了自己用惯的操作方式：Improv有数据透视表却没有熟悉的网格，而Excel后来将透视功能加入了同样的矩形界面。<sup>[11](https://www.bettersheets.co/history)</sup> Improv于1996年后停产，被人们铭记为一款生不逢时却方向正确的产品，其磁贴布局理念在2007年发布的苹果Numbers中清晰可见。<sup>[10](https://rip.so/lotus-improv.html)</sup>

## 被Excel及其他产品采纳

Improv的“灵活视图”特性被内置于[Lotus 1-2-3](https://www.edgepedia.org/zh/lotus-1-2-3)和Excel中，而Excel是第一个实际使用“数据透视表”这一术语的产品。<sup>[3](https://qz.com/1903322/why-pivot-tables-are-the-spreadsheets-most-powerful-tool)</sup> Excel 97为用户带来了改版的数据透视表向导以及重要的功能升级，包括插入计算字段的选项。<sup>[5](https://flylib.com/books/en/1.369.1.11/2/)</sup> 数据透视表后来加入了一系列将Excel扩展到简单数字运算之外的功能之列，与3D图表和功能区界面并列。<sup>[12](https://www.techradar.com/pro/microsoft-excel-turned-40-and-almost-nobody-noticed-worlds-most-popular-spreadsheet-now-faces-tough-competition-from-google-sheets-after-crushing-lotus-1-2-3-and-borland-quattro-pro)</sup>

同样的理念也存在于数据库中。[PostgreSQL](https://www.edgepedia.org/zh/postgresql)的tablefunc扩展提供了crosstab函数，可生成一个“数据透视表”，其中包含行名以及由调用查询的行类型决定的一定数量的值列，预定义了crosstab2、crosstab3和crosstab4，用户还可以定义更多变体。<sup>[7](https://www.postgresql.org/docs/17/tablefunc.html)</sup> 在商业智能研究中，数据透视表被视为OLAP数据的标准界面，用户通过与表格本身交互来改变所显示的数据。<sup>[1](https://documentserver.uhasselt.be/bitstream/1942/22226/1/14394562015838.pdf)</sup><sup> • </sup><sup>[13](https://nickdraper.me/60-ODonnell-Draper.pdf)</sup>

## 近期发展

**Excel自动刷新。** 2025年，Excel为数据透视表引入了自动刷新功能，先向Microsoft 365预览体验计划中的部分Beta用户推送；该功能依赖于透视缓存（Pivot Cache）概念，会同时影响工作簿中的所有数据透视表，当源数据保存在Excel表格中时效果最佳，这样在底部添加的行会被自动纳入。<sup>[14](https://www.youtube.com/watch?v=92QsPTfHmVA)</sup>

**Google Sheets分组字段。** 2026年8月，Google Sheets为数据透视表增加了分组字段持久化功能：自定义分组以及分组的日期、时间或数值字段会作为可复用的源字段保留在数据透视表编辑器侧边栏中，因此分组字段可以从当前布局中取消分配而不丢失其配置。同一次更新还修复了一个互操作性缺口，即导入含有带分组字段的数据透视表的Excel文件时，自定义分组会从字段列表中丢失；现在导入和导出电子表格文件时，分组字段配置都会被保留。推广于2026年8月25日在快速发布域开始，2026年9月14日在计划发布域开始，最长可能需要15天才能看到该功能。<sup>[15](https://workspaceupdates.googleblog.com/2026/08/preserve-and-reuse-grouped-pivot-table-fields-in-Google-Sheets.html)</sup>

**AI辅助。** 2025年5月，Google增加了在Sheets中使用Gemini以自然语言执行以往需要更高级专业技能的操作的能力，包括创建数据透视表，例如输入提示“创建一个按地区显示总销售额的数据透视表”。<sup>[16](https://workspaceupdates.googleblog.com/2025/05/use-gemini-google-sheets-advanced-actions.html)</sup>

## 历史所揭示的

数据透视表的历史是一个底层理念在不同于其诞生平台的另一个平台上取得成功的案例。Excel在熟悉的网格中加入了透视功能，创造了沿用至今的名称，并在从Excel 97的计算字段到2025年自动刷新工作的各版本中不断完善该功能。<sup>[3](https://qz.com/1903322/why-pivot-tables-are-the-spreadsheets-most-powerful-tool)</sup><sup> • </sup><sup>[5](https://flylib.com/books/en/1.369.1.11/2/)</sup><sup> • </sup><sup>[14](https://www.youtube.com/watch?v=92QsPTfHmVA)</sup> 这一概念也在电子表格网格之外延续下来，以PostgreSQL中的crosstab函数以及OLAP商业智能界面的标准交互模型的形式再度出现。<sup>[7](https://www.postgresql.org/docs/17/tablefunc.html)</sup><sup> • </sup><sup>[13](https://nickdraper.me/60-ODonnell-Draper.pdf)</sup>

## References

1. ["pivot table" showing the summarized data (business intelligence context), Université de Liège document repository](https://documentserver.uhasselt.be/bitstream/1942/22226/1/14394562015838.pdf)
2. [The history of Pivot table, ScraperWiki](https://scraperwiki.com/2014/07/the-history-of-pivot-table/)
3. [The history of the pivot table, the spreadsheet's most powerful tool, Quartz](https://qz.com/1903322/why-pivot-tables-are-the-spreadsheets-most-powerful-tool)
4. [No-code History: Lotus Improv – Spreadsheets Done Right (1991), Instadeq](https://instadeq.com/blog/posts/no-code-history-lotus-improv-spreadsheets-done-right-1991/)
5. [The Invention of the Pivot Table, Pivot Table Data Crunching for Microsoft Office Excel 2007](https://flylib.com/books/en/1.369.1.11/2/)
6. [Create & use pivot tables, Google Docs Editors Help](https://support.google.com/docs/answer/1272900?hl=en-CA&ref_topic=9055396)
7. [PostgreSQL 17 Documentation: F.41. tablefunc](https://www.postgresql.org/docs/17/tablefunc.html)
8. [Overview of PivotTables and PivotCharts, Microsoft Support](https://support.microsoft.com/en-us/excel/overview-of-pivottables-and-pivotcharts)
9. [Excel Data Analysis: PivotTables, Power Query & Business Intelligence Techniques, Indigo Software Company](https://indigosoftwarecompany.com/excel-data-analysis-pivottables-power-query-business-intelligence-techniques/)
10. [Lotus Improv (1991–1996), rip.so](https://rip.so/lotus-improv.html)
11. [Spreadsheet History: The Definitive History of Spreadsheets, Better Sheets](https://www.bettersheets.co/history)
12. [Microsoft Excel turned 40 and almost nobody noticed, TechRadar](https://www.techradar.com/pro/microsoft-excel-turned-40-and-almost-nobody-noticed-worlds-most-popular-spreadsheet-now-faces-tough-competition-from-google-sheets-after-crushing-lotus-1-2-3-and-borland-quattro-pro)
13. [An Experimental Evaluation of an Alternative to the Pivot Table for Ad Hoc Analysis, O'Donnell & Draper](https://nickdraper.me/60-ODonnell-Draper.pdf)
14. [This NEW Pivot Tables Feature Changes EVERYTHING, Excel Campus (YouTube, 2025)](https://www.youtube.com/watch?v=92QsPTfHmVA)
15. [Preserve and reuse grouped pivot table fields in Google Sheets, Google Workspace Updates](https://workspaceupdates.googleblog.com/2026/08/preserve-and-reuse-grouped-pivot-table-fields-in-Google-Sheets.html)
16. [Use Gemini in Google Sheets to quickly add dropdowns, pivot tables, filters, and more, Google Workspace Updates](https://workspaceupdates.googleblog.com/2025/05/use-gemini-google-sheets-advanced-actions.html)

---
*Initially written Sep 17, 2026 · Reviewed: Sep 17, 2026; Sep 30, 2026; Oct 15, 2026 · Edited: Oct 15, 2026 · Last review: Oct 15, 2026*

Topic: 技术与人造世界 › 计算技术与数字系统 › 人工智能与数据 › Databases and data systems › Data mining, warehousing, and big data › Data warehousing

Copyright 2026 Edgepedia

License: Edgepedia Community License 1.0, https://www.edgepedia.org/edgepedia/license

Source: https://www.edgepedia.org/zh/pivot-table

English original: https://www.edgepedia.org/pivot-table
