Advertisement

02.13.2008 at 02:06AM PST, ID: 23159098
[x]
Attachment Details

How do I Count unique values in a pivot table?

Asked by Merch_Ops in Microsoft Excel Spreadsheet Software, Microsoft Access Database, SQL Query Syntax

Tags: , , ,

Hi - I'm creating a Excel pivot table from a Query in an Access database. I need it to count the number of products reviewed in a specific week, but the dataset has the review as the primary key:
Review ID   Product ID   Submission Date   Week No.    Avg Weekly   Overall Rating
12345         2467            01/01/08                 1                 1/7                   4
12346         2468            02/01/08                 1                 1/7                   2
12347         2467            05/01/08                 1                 1/7                   4
My pivot table so far picks up:
                                          Week
                                             1
Count of Review ID              3         = count of reviews that week
Sum of Weekly Average      3/7      = Avg no of daily reviews
Average Overall Review     3 1/3   = Avg review
Count of Product ID              3         = Should be 2, but is 3 as it's counting the number of instances rather than the number of Product IDs.

How do I get it to count the unique product IDs without creating a separate pivot table or standard formula within the worksheet - can it be done with a calculated field or can I add a new field to the query which can be included in the pivot table?

Please help!

Cheers.
Start Free Trial
[+][-]02.13.2008 at 04:19AM PST, ID: 20883487

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]02.13.2008 at 04:36AM PST, ID: 20883587

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]02.13.2008 at 04:48AM PST, ID: 20883640

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]02.13.2008 at 05:07AM PST, ID: 20883773

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Microsoft Excel Spreadsheet Software, Microsoft Access Database, SQL Query Syntax
Tags: Microsoft, Office, 2003, Excel Pivot Table Count Unique Field
Sign Up Now!
Solution Provided By: rorya
Participating Experts: 2
Solution Grade: A
 
 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628