ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Pivot Table Calculated Field - Sum/count (https://www.excelbanter.com/excel-discussion-misc-queries/248036-pivot-table-calculated-field-sum-count.html)

Jeff Metcalf

Pivot Table Calculated Field - Sum/count
 
I have a pivot table that returns data from a SQL View.
The pivot table counts the total number of incedents, and sums a SLA met
field.
The SQL table returns a 1 if the SLA was met, or a 0 of it was not.

Why, when I try to get the percentage (sum of SLA / count of incedents)
using a calculated field does every row return a div/0 error?

Thanks in advance

AFSSkier

Pivot Table Calculated Field - Sum/count
 
0/0 will give you the #DIV/0 error. Try =IFERROR(0,SLA/count)
--
Kevin


"Jeff Metcalf" wrote:

I have a pivot table that returns data from a SQL View.
The pivot table counts the total number of incedents, and sums a SLA met
field.
The SQL table returns a 1 if the SLA was met, or a 0 of it was not.

Why, when I try to get the percentage (sum of SLA / count of incedents)
using a calculated field does every row return a div/0 error?

Thanks in advance



All times are GMT +1. The time now is 04:29 AM.

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