Calculated Field question for pivot tables

dcleslie

New Member
Joined
Feb 20, 2018
Messages
2
I have a pivot table pulling the count of attendees for various events. Of those, another column pulls a count of those who have applied. I need to insert a calculated field to find the percentage of those that applied based off of the total who attended the event.

Should be simple to do, but when I try, I get a %DIV=0! value in the cells.

There are other work-around I could try, but the pivot table is much more complex than just these two data points, I need to have more than one calculated field inserted, the pivot table will have splicers and the table is pulling from a dynamic data set (connected through a SQL Server).

Thoughts? am I missing something obvious?
 

Excel Facts

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result
The way i would approach this is to use 1s and 0s for attended and applied. Calculated fields use sum so using 1s and 0s basically turns a sum into a count.
 
Upvote 0
Maybe customise the SQL (that defines the dataset into the pivot cache/table) to get the desired bespoke result.

For a manually created pivot table, if you set up the pivot table via the wizard (ALT-D-P), choose external data source at the first step, and then at the last step (of the wizard) choose the option to edit the SQL.

PS. Reason for this is you can be very specific about what you want.
 
Last edited:
Upvote 0

Forum statistics

Threads
1,214,975
Messages
6,122,538
Members
449,088
Latest member
RandomExceller01

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