跳到主要内容

 如何在枢纽分析表的顶部显示总计?

众所周知,默认情况下,总计行位于数据透视表的底部,但有时,为了快速轻松地查看总计,您需要将总计行置于数据透视表的顶部。 在Excel中,没有直接的方法可以更改总计的位置,但是在这里,我将讨论解决此问题的有趣技巧。

在数据透视表的顶部显示总计


箭头蓝色右气泡 在数据透视表的顶部显示总计

要将总计行显示在数据透视表的顶部,您需要在数据透视表中添加一个新字段并将其用作总计,然后将其显示在顶部。 请分步执行以下操作:

步骤1:创建假的总计字段

1。 在您的源数据范围中,请在其中添加一个新列,并将列标题命名为“ GT”,然后在此新列中输入“总计”,请参见屏幕截图:

doc显示全部合计排名前1

2。 然后通过右键单击数据透视表来刷新数据透视表,然后选择 刷新,并且新字段已插入到 选择要添加到报告中的字段 列表框,然后将新字段GT拖到 行标签 框,并将其放在其他行标签的顶部,请参见屏幕截图:

doc显示全部合计排名前1

Tips::刷新数据透视表以添加新列,也可以单击数据透视表,然后单击 附加选项 标签或 分析 标签> 变更资料来源 > 变更资料来源,并选择包括您在步骤1中添加的新列的新范围,现在将GT列添加到 数据透视表字段列表.

3。 将新字段拖到 行标签,您将在数据透视表的顶部获得“总计”行。

doc显示全部合计排名前1

步骤2:显示总计金额

4。 在第3步中,我们只能显示总计,但没有金额数据。 因此,我们需要更改设置以在顶部显示金额。 请单击数据透视表中的任何一个单元格,然后单击 设计 > 分类汇总 > 显示顶级组的所有小计,请参见屏幕截图:

doc显示全部合计排名前1

5。 总计金额已显示为以下屏幕截图:

doc显示全部合计排名前1

步骤3:隐藏原始的“总计”行

在枢纽分析表的顶部添加总计之后,接下来,您需要在底部隐藏默认的总计。

6。 单击数据透视表的任何一个单元格,然后单击 设计 > 总计 > 仅在行上,请参见屏幕截图:

doc显示全部合计排名前1

7。 底部的总计行立即被隐藏。


相关文章:

如何在数据透视表中创建可点击的超链接?

如何在数据透视表中为组重复行标签?

如何过滤数据透视表中的前10个项目?

最佳办公生产力工具

🤖 Kutools 人工智能助手:基于以下内容彻底改变数据分析: 智能执行   |  生成代码  |  创建自定义公式  |  分析数据并生成图表  |  调用 Kutools 函数...
热门特色: 查找、突出显示或识别重复项   |  删除空白行   |  合并列或单元格而不丢失数据   |   不使用公式进行四舍五入 ...
超级查询: 多条件VLookup    多值VLookup  |   跨多个工作表的 VLookup   |   模糊查询 ....
高级下拉列表: 快速创建下拉列表   |  依赖下拉列表   |  多选下拉列表 ....
列管理器: 添加特定数量的列  |  移动列  |  切换隐藏列的可见性状态  |  比较范围和列 ...
特色功能: 网格焦点   |  设计图   |   大方程式酒吧    工作簿和工作表管理器   |  资源库 (自动文本)   |  日期选择器   |  合并工作表   |  加密/解密单元格    按列表发送电子邮件   |  超级筛选   |   特殊过滤器 (过滤粗体/斜体/删除线...)...
前 15 个工具集12 文本 工具 (添加文本, 删除字符,...)   |   50+ 图表 类型 (甘特图,...)   |   40+ 实用 公式 (根据生日计算年龄,...)   |   19 插入 工具 (插入二维码, 从路径插入图片,...)   |   12 转化 工具 (小写金额转大写, 货币兑换,...)   |   7 合并与拆分 工具 (高级组合行, 分裂细胞,...)   |   ... 和更多

使用 Kutools for Excel 增强您的 Excel 技能,体验前所未有的效率。 Kutools for Excel 提供了 300 多种高级功能来提高生产力并节省时间。  单击此处获取您最需要的功能...

产品描述


Office Tab 为 Office 带来选项卡式界面,让您的工作更加轻松

  • 在Word,Excel,PowerPoint中启用选项卡式编辑和阅读,发布者,Access,Visio和Project。
  • 在同一窗口的新选项卡中而不是在新窗口中打开并创建多个文档。
  • 每天将您的工作效率提高50%,并减少数百次鼠标单击!
Comments (11)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
thank you very much. perfect trick ....
This comment was minimized by the moderator on the site
Tried to add both Row and Column grand totals at the top/left and this didn't work with one helper column. It seems a PivotTable Field may only be in a row or a column, not both simultaneously. May try again with two columns in the original data source, something like GT1 and GT2. That should fix it, but I haven't tried it yet.
This comment was minimized by the moderator on the site
Super, ale przy tym jest jeden ważny problem który powstaje
Przy takiej edycji pozbawiamy się możliwości filtrowania danych po kolumnie.
mamy wtedy do wyboru tylko "Grand total" a nie jak poprzednio całość kolumny.

Czy to można jakość obejść ?
This comment was minimized by the moderator on the site
Parabéns , arrasou
This comment was minimized by the moderator on the site
How this will work if I have multiple fields in Row Lebels?
This comment was minimized by the moderator on the site
Muito bom! Dica bastante útil! Valeu!
This comment was minimized by the moderator on the site
Thanks! Very useful!
This comment was minimized by the moderator on the site
Thanks so much.very useful.
This comment was minimized by the moderator on the site
Really nice idea and the way steps described are easy to learn and clear. Thanks you
This comment was minimized by the moderator on the site
Any ideas on how to do this with data from an OLAP query? I can't manipulate the database on the back-end, so adding a column is not an option. Thanks.
There are no comments posted here yet
Load More
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations