简体   繁体   English

Excel数据透视表添加%列

[英]Excel Pivot Table add % column

I have a Pivot: 我有一个枢轴:

City           HC    TC
--------------------------------
London         50    100
Manchester     67    250
Leeds          20    20

All I need to do is, within the Pivot table, add another column that calculates the percentage based on the second and third columns. 我要做的就是在“数据透视表”中添加另一列,该列基于第二列和第三列计算百分比。

The outcome would be: 结果将是:

City           HC    TC
--------------------------------
London         50    100    50%
Manchester     67    250    27%
Leeds          20    20     100%

Under Fields, Items & Sets click Calculated Field... and add your formula that's dependent on other columns in the Pivot table. 在“ Fields, Items & SetsFields, Items & Sets单击“ Calculated Field...然后添加依赖于数据透视表中其他列的公式。


Example: 例:

The database: 数据库:

The Pivot table (with Field2 formula: = Revenue / Units ): 数据透视表(具有Field2公式: = Revenue / Units ):



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

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