Adding Calculated Fields to PivotTable

BillCodd

New Member
Joined
Jun 7, 2013
Messages
3
I have fields "Day", "Posts", "Impressions" in a pivot table and I need to create a new metric for the average Impressions per Post. Ideally, this new metric should function just like the other fields in the pivot table, and not just static, because I'd like to break it out not just by Day, but also Time, etc.

How can I do this?

DayCount of PostsSum of ImpressionsImpressions Per Post
Monday521,881,468
Tuesday815,339,207
Wednesday784,349,817
Thursday824,527,542
Friday562,025,492
Saturday471,620,026
Sunday452,152,364

<tbody>
</tbody>

<tbody>
</tbody>
Thanks
 

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off
Hi

Click on your pivot and "Add Calculated Field" (In 2010 it is 'Options'...'Fields items & sets'...'Calculated Field')
then...

Name: - Type the name of your 'new' field 'Impressions per post'

Formula: - Easiest way is to delete the "= 0" that shows as default then...
1. Type "="
2. Double click on the fieldname in the field list below 'Sum of impressions'
3. type "/"
4. Double click fieldname 'Count of Posts'
5. Click 'Add'
6. Click 'OK'

I say do it this way as it ensures you have the correct fieldnames (and in the single quote) in the formula. Any typo and the formula won't work.
 
Upvote 0

Forum statistics

Threads
1,215,526
Messages
6,125,328
Members
449,218
Latest member
Excel Master

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top