Solved

Pivot table from multiple sources

Posted on 2011-02-18
9
406 Views
Last Modified: 2012-06-27
This is a hard one to explain but here goes:

I have external data that basically shows a case number, an open date and a closed date.
I want to create a pivot table to include the sum of the open and the sum of the closed on a month by month basis.
Sounds simple but if i create a single data connection to the data and then create the pivot table to show open cases and closed cases inthe values and the days and months in the row labels it will give me the sum of the open cases in a particular month correctly but the closed, instead of being the sum of the cases closed in the month shows the sum of the closed based on those opened in that month. (if that makes sense!)

My initial thought was to create two data connections, one to pull in the open cases count and one to pull in the closed count, then combine them into a single pivot table. Is this possible?

I have included a copy of my work so far. As you can see there are two tabs that are pulled from the data source "Opened" & "Closed" and an Analysis tab where the pivot table is.

On the analtsis i have created two pivot tables, one for the open and one for the closed. Also shown is a set of data that link to both tables and shows Opened, Closed and the Difference. This is the info i need in the single pivot table.

Is this possible?

Thanks in advance.


Opened-to-Closed---Copy.xlsx
0
Comment
Question by:carlspywell
  • 4
  • 3
9 Comments
 
LVL 24

Expert Comment

by:StephenJR
Comment Utility
Could you combine the two datasets into one and put in the third column 1 for open and 2 for closed (say)?
0
 

Author Comment

by:carlspywell
Comment Utility
I had a single source origionally with open & closed dates then i created a column for open with 1 in and a further column for closed with a one in (so it would use the sum of these to show the number open and the number closed) however, The data does not seem to match up!

Here is the closed data for 2010 as it should be

      Jan      118
      Feb      143
      Mar      151
      Apr      119
      May      127
      Jun      83
      Jul      116
      Aug      113
      Sep      162
      Oct      150
      Nov      106
      Dec      91

And here is 2010 when using the combined source: (the 2nd column is the opened)

Jan      196      67
Feb      236      111
Mar      329      116
Apr      272      64
May      191      44
Jun      238      55
Jul      213      66
Aug      142      33
Sep      231      42
Oct      172      26
Nov      195      16
Dec      205      12

As you can see the data is not the same. I don't know why!
0
 
LVL 24

Expert Comment

by:StephenJR
Comment Utility
OK, what should the values be for Jan 2010 in the file you attached?
0
 

Author Comment

by:carlspywell
Comment Utility
Open 196 and closed 118. If you see the file i attached the values are correct on the analysis sheet.
0
How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

 

Author Comment

by:carlspywell
Comment Utility
I have attached a further file where sheet 1 shows the result of the combined data from the DATA Sheet
Opened-to-Closed---Copy--2-.xlsx
0
 
LVL 24

Accepted Solution

by:
StephenJR earned 500 total points
Comment Utility
Might be a red herring, but I make it 314 closed. I get the same values in the attached which is a single dataset to which I've added a year and month column (if you group  by month I don't think a PT allows for the year).
Book2.xls
0
 

Author Comment

by:carlspywell
Comment Utility
Apologies, I forgot to mention that they are filtered by Claim Type to Include only "R" & "M".

You are correct @ 314 if you include all Claim Types.

0
 
LVL 24

Expert Comment

by:broomee9
Comment Utility
This question has been classified as abandoned and is being closed as part of the Cleanup Program. See my comment at the end of the question for more details.
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Drop Down List with Unique/Distinct Values (Part II - ComboBox or ListBox and Data Validation List Bonus!) David Miller (dlmille) Intro This article focuses on delivering unique, sorted lists to list objects (e.g., ComboBox, ListBox) and Dat…
This tutorial explains how to create a series of drop-down lists that are dependent upon prior selections to guide (“force”) the user to make the correct selection and reduce data errors within Microsoft Excel. Excel 2010 was used for this tutorial;…
This Micro Tutorial will demonstrate how to use longer labels with horizontal bar charts instead of the vertical column chart.
This Micro Tutorial will demonstrate how to create pivot charts out of a data set. I also added a drop-down menu which allows to choose from different categories in the data set and the chart will automatically update.

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now