Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Set a Column in Pivot Table as Percentage of Another

How can make a column to be a percentage of another column in pivot table? For example, in the following.enter image description here

I want set the second column as the following percentages 1/1, 44/46, 459/465 etc. For the third column, I want it to appear as the percentages 1/1. 41/44 and so on.

like image 779
Concerned_Citizen Avatar asked Oct 18 '16 04:10

Concerned_Citizen


People also ask

How do I find the percentage difference between two columns in a PivotTable?

➤ Right-click on any cell of the Sum of % Change column and then select the Number Format option. Afterward, the Format Cells dialog box will open. ➤ Select Percentage from the list of categories and select your desired value in the Decimal Places value (here, we have chosen 2). ➤ Press OK.

Can pivot tables show data as percentages?

And, when you want a PivotTable to help you see relationships within your data, you can show values in terms of percentage of totals and even percentage of subtotals.


2 Answers

I believe what you want is a calculated field.

From the pivot table "Options" menu for Office 2010 or before or the "Analyze" menu for office 2013 or after, select "Fields, Items and Sets" -> "Calculated Field."

In the Name box, name it whatever you want ("% of SLA Met").

In the Formula Box, you can click on the fields to have them brought up, and it will end up looking something like this:

='Responded SLA Met'/'Ticket Nbr'

That said, you can't really do a "sum / count" -- you can, but it won't do what you want. So, you will probably have to add a column with all 1's in it (call it ticket count) and then use the sum of that as the denominator:

='Responded SLA Met'/'Ticket Count'

enter image description here

like image 184
Hambone Avatar answered Oct 16 '22 20:10

Hambone


In newer Excel menu Analyze -> Fields, Items, & Sets -> Calculated Field...

enter image description here

like image 1
sbrbot Avatar answered Oct 16 '22 22:10

sbrbot