ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Pivot Table Calculated field error (https://www.excelbanter.com/excel-discussion-misc-queries/247980-pivot-table-calculated-field-error.html)

Jeff Metcalf

Pivot Table Calculated field error
 
I have a pivot table that
As Rows

Service Territories

As Values
Count the number of service calls
Sum two columns of data consisting of 1 or 0 depending on whether a SLA was
met.

When I try to put in a calculated field of SLA1/callcount, all I get is a
div/0 error?

I can do a manual calc of

=GETPIVOTDATA("Sum of
Met_Response",$A$5,"Area","FL")/GETPIVOTDATA("CallCount",$A$5,"Area","FL")

and it's fine. Why can't I do a calculated formula in the pivot table
itself to do this?

Thanks in advance,

Jeff

Debra Dalgleish

Pivot Table Calculated field error
 
A calculated field will always use the sum of the referenced fields,
even if you've used a different summary function in the pivot table.

So, if your CallCount is based on a text field, its sum will always be
zero. That's why you get a #DIV/0! error.

Jeff Metcalf wrote:
I have a pivot table that
As Rows

Service Territories

As Values
Count the number of service calls
Sum two columns of data consisting of 1 or 0 depending on whether a SLA was
met.

When I try to put in a calculated field of SLA1/callcount, all I get is a
div/0 error?

I can do a manual calc of

=GETPIVOTDATA("Sum of
Met_Response",$A$5,"Area","FL")/GETPIVOTDATA("CallCount",$A$5,"Area","FL")

and it's fine. Why can't I do a calculated formula in the pivot table
itself to do this?

Thanks in advance,

Jeff



--
Debra Dalgleish
Contextures
www.contextures.com/tiptech.html
Blog: http://blog.contextures.com



All times are GMT +1. The time now is 09:55 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com