+ Reply to Thread
Results 1 to 5 of 5

Thread: Pivot Table

  1. #1
    Registered User
    Join Date
    11-14-2009
    Location
    India
    MS-Off Ver
    Excel 2003
    Posts
    3

    Pivot Table

    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 Attached Files

  2. #2
    Valued Forum Contributor
    Join Date
    08-23-2009
    Location
    Hampshire, UK
    MS-Off Ver
    Excel 2003, Excel 2007
    Posts
    324

    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.

  3. #3
    Registered User
    Join Date
    11-14-2009
    Location
    India
    MS-Off Ver
    Excel 2003
    Posts
    3

    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 Attached Files

  4. #4
    Registered User
    Join Date
    11-14-2009
    Location
    India
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Pivot Table

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

    Sanchit.

  5. #5
    Valued Forum Contributor
    Join Date
    08-23-2009
    Location
    Hampshire, UK
    MS-Off Ver
    Excel 2003, Excel 2007
    Posts
    324

    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.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.2.0