Home |
Search |
Today's Posts |
#1
![]() |
|||
|
|||
![]()
I am using a Pivot Table to view data from a very large database. The Pivot
Table has the following fields: Customer, Quarter and Sales. There are many duplicate Customer sales in the database. I would like to create a Pivot Table that calculates the # of unique customers in each quarter. If I use the Pivot Table Count function it double counts all of the duplicate Customer entries. Can I create a Calculated Field that accomplishes this? I have tried using this formula that I found in a previous string, €ś=SUM(IF(LEN(Sheet1!A2:A100)0,1/COUNTIF(Sheet1!A2:A100,Sheet1!A2:A100)))€ť, but since I am using it in a Pivot Table calculated field I used the following format: €ś=SUM(IF(LEN(Customer)0,1/COUNTIF(Customer, Customer)))€ť. Where €śCustomer€ť is inserted from the Pivot Table field list. I get a €śThe function contains an error€ť message. Can you help me understand what I am doing wrong? Thanks! -- Mike Struckman |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Pivot Table Customize functions in the Data Field | Excel Discussion (Misc queries) | |||
Calculated Field in Pivot Table | Excel Worksheet Functions | |||
Setting default pivot table field setting to "sum" | Excel Discussion (Misc queries) | |||
How to create a calculated field formula based on Pivot Table resu | Excel Discussion (Misc queries) | |||
How do I get a pivot table to sum instead of giving me a count? | Excel Worksheet Functions |