Welcome to the Excel Forum

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed.

Please Register to Remove these Ads

Please Register to Remove these Ads



Reply
  #1  
Old 11-21-2009, 01:14 AM
Sanchit297 Sanchit297 is offline
Registered User
 
Join Date: 14 Nov 2009
Location: India
MS Office Version:Excel 2003
Posts: 3
Sanchit297 is becoming part of the community
Pivot Table

Please Register to Remove these Ads

Hi,

I am having some trouble with using Pivot Table. I have attached the excel sheet below.

In my case, i would be taking data from SQL tables and exporting to Excel "RawData" sheet. From this sheet i have designed a Pivot Table.

Code:
Location
BranchID
Total Count
ScanDateTime
DataDateTime
Longest Elapsed Time (DataDateTime - ScanDateTime)
Average Elapsed Time (Average of all Longest Elapsed Time)
Now, my requirement for designing Pivot Table is:
Location,BranchID - shown at Row Area

Total Count,ScanDateTime,DataDateTime,Longest Elapsed Time ,Average Elapsed Time - shown at Data Area

However im facing the following issues after designing the Pivot:

1) The Grand Total Average Time shown after all rows is Incorrect
2) The Grand Total Longest Time shown after all rows is Incorrect
3) I do not want to include ScanDateTime,DataDateTime in every Location Level Total row and Grand Total row but by default it is showing.
4) The format for all the Data Area fields listed above is not proper.

Have a look at the attachment and let me know your views on the above issues im facing.
Attached Files
File Type: zip Template.zip (30.4 KB, 3 views)
Reply With Quote
  #2  
Old 11-21-2009, 11:31 AM
Huron Huron is offline
Valued Forum Contributor
 
Join Date: 23 Aug 2009
Location: Hampshire, UK
MS Office Version:Excel 2003, Excel 2007
Posts: 222
Huron is attaining expert status Huron is attaining expert status
Re: Help on Pivot Table..

There are problems with your RawData sheet. The Longest Elapsed Time is formatted as actual time (hh:mm:ss) but it should be formatted as elapsed time ([h]:mm:ss). You can see the problem in your sheet on times which are longer than 24 hours eg line 25 where ScanDateTime is 22 Oct and DataDateTime is 24 Oct but your formatting shows this as just 20 hours instead of 44 hours.

The pivot table is showing the correct values in elapsed time format.

I'm not sure how you are getting the Average Elapsed Time but it is frequently greater than the Longest Elapsed Time which can't be possible.
Reply With Quote
  #3  
Old 11-22-2009, 07:53 AM
Sanchit297 Sanchit297 is offline
Registered User
 
Join Date: 14 Nov 2009
Location: India
MS Office Version:Excel 2003
Posts: 3
Sanchit297 is becoming part of the community
Re: Pivot Table

Thanks Huron - Ive corrected my sheet.

Now, i do not want to Show "ScanDateTime and DataDateTime" in my Summary Rows after each Location and Grand Total - How should i proceed here ??

In the Grand Total row at the end i want the "Longest Elapsed Time" to be the Longest time from the individual "Summary rows" calculated for each location. How should i proceed here ??

I have attached the updated Sheet.


Sanchit.
Attached Files
File Type: xls Template_Updated.xls (106.5 KB, 3 views)
Reply With Quote
  #4  
Old 11-22-2009, 12:04 PM
Sanchit297 Sanchit297 is offline
Registered User
 
Join Date: 14 Nov 2009
Location: India
MS Office Version:Excel 2003
Posts: 3
Sanchit297 is becoming part of the community
Re: Pivot Table

I would appreciate a quick response from anyone on the issue im facing.

Sanchit.
Reply With Quote
  #5  
Old 11-22-2009, 02:48 PM
Huron Huron is offline
Valued Forum Contributor
 
Join Date: 23 Aug 2009
Location: Hampshire, UK
MS Office Version:Excel 2003, Excel 2007
Posts: 222
Huron is attaining expert status Huron is attaining expert status
Re: Pivot Table

I don't think you can have summary rows for some data fields but not others - as far as I know it's all or none.

The Grand Total at the end is showing the Longest Elapsed Time ie 118:30:08 which was the value for Australia.
Reply With Quote


Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Forum Jump