Creating Calculated Field with SUM and COUNT of Fields Pivot Table

calculated-columnsexcel-2010pivot table

Here's a snapshot of my pivot table.

enter image description here

I want to create a calculated field that displays the percentage from the
Responded column (C) over the Ticket # column (B) as in column G.

The Ticket # column is a column of value text strings (e.g. 413456, 464313) and the Responded column is a list of 1's and 0's. In my pivot table I am taking the count of all Ticket # and the sum of the Responded.

I tried to create a calculated field with the following formula

=Responded/COUNT('Ticket #')

but this gave me the same as Sum of Responded. How can I create a calculated field that gives me the % in column G?

Best Answer

From my experience and what another SO member posted, COUNT doesn't seem to work well in pivot table field calculations. I managed to count the distinct tickets by creating a helper column of 1's and 0's in my data source. (Thanks to this response from Siddarth Rout.)

Once you have 1's associated with each distinct tickets, I simply created the calculated with Responded/Ticket #.