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?

[TABLE="width: 329"]
<tbody>[TR]
[TD][TABLE="width: 500"]
<tbody>[TR]
[TD]Day[/TD]
[TD="align: center"]Count of Posts[/TD]
[TD="align: center"]Sum of Impressions[/TD]
[TD="align: center"]Impressions Per Post[/TD]
[/TR]
[TR]
[TD]Monday[/TD]
[TD="align: center"]52[/TD]
[TD="align: center"]1,881,468[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Tuesday[/TD]
[TD="align: center"]81[/TD]
[TD="align: center"]5,339,207[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Wednesday[/TD]
[TD="align: center"]78[/TD]
[TD="align: center"]4,349,817[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Thursday[/TD]
[TD="align: center"]82[/TD]
[TD="align: center"]4,527,542[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Friday[/TD]
[TD="align: center"]56[/TD]
[TD="align: center"]2,025,492[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Saturday[/TD]
[TD="align: center"]47[/TD]
[TD="align: center"]1,620,026[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Sunday[/TD]
[TD="align: center"]45[/TD]
[TD="align: center"]2,152,364[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
</tbody>[/TABLE]
Thanks
 
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

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