跳到主要內容

 如何在樞紐分析表的頂部顯示總計?

眾所周知,默認情況下,總計行位於數據透視表的底部,但是有時,為了快速輕鬆地查看總計,您需要將總計行置於數據透視表的頂部。 在Excel中,沒有直接的方法可以更改總計的位置,但是在這裡,我將討論解決此問題的有趣技巧。

在數據透視表的頂部顯示總計


箭頭藍色右氣泡 在數據透視表的頂部顯示總計

要將總計行顯示在數據透視表的頂部,您需要向數據透視表添加一個新字段並將其用作總計,然後將其顯示在頂部。 請分步執行以下操作:

步驟1:創建一個假的總計字段

1。 在您的源數據范圍中,請在其中添加一個新列,並將列標題命名為“ GT”,然後在此新列中輸入“總計”,請參見屏幕截圖:

doc顯示全部合計排名前1

2。 然後通過右鍵單擊數據透視表來刷新數據透視表,然後選擇 刷新,並且新字段已插入到 選擇要添加到報告中的字段 列錶框,然後將新字段GT拖到 行標籤 框,並將其放在其他行標籤的頂部,請參見屏幕截圖:

doc顯示全部合計排名前1

尖端:刷新數據透視表以添加新列,也可以單擊數據透視表,然後單擊 選項 選項卡或 分析 標籤> 變更資料來源 > 變更資料來源,並選擇包括您在步驟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選項卡為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