Results 1 to 8 of 8
  1. #1
    MichaelSchulz is offline Novice
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2015
    Posts
    4

    Access Pivot Table: losing Detail Data when Exporting to Excel


    I used Access to create a Pivot Table from the returned record set of a query.

    The Pivot Table displays exactly what I want: it shows in the Detail Data field each and every data point at the intersection of the Row area and the Column area without any sort of summarizing. I know that the point of a Pivot Table is to aggregate the data in some way but in this case it just so happens that I need to see the detail just as Access shows it.
    Click image for larger version. 

Name:	screenshot_AccessPivotTable.png 
Views:	7 
Size:	137.8 KB 
ID:	20653
    The problem is when attempting to export the table to Excel: the Detail Data field empties and, it seems, Excel cannot produce what Access so easily created. This seems to be because Excel is required to perform some sort of calculation to aggregate the data in some fashion.

    My thinking is: if Access can so readily create exactly what I need, there ought to be a way to export that table.

    How can this be accomplished?

    Failing that, how can I produce an output, preferably to Excel, that organizes the data in the same manner?

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,959
    What is the structure of raw data? Maybe CROSSTAB query could produce the desired output.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    MichaelSchulz is offline Novice
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2015
    Posts
    4
    I don't believe a CROSSTAB would work as it requires a function to aggregate and summarize the data.

    The source data for the Pivot is the result of a query that contains joins and nested (or 'correlated') queries. The structure of the query result in Datasheet View is:

    (PIP ID, Project Name, Activity, Control, Date of Change, Old Value, New Value)

    where PIP ID is the Primary Key for one of the source tables, and Control acts as a qualifier (or subset) of Activity.

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,959
    First(), Last(), Max(), Min() are also aggregate functions that can be used in CROSSTAB or GROUP BY query. What you want can possibly be generated with expressions that emulate a CROSSTAB (http://www.datapigtechnologies.com/f.../crosstab.html) then apply GROUP BY with one of the above functions.

    How many Control values are there? I see only 2 (PS and PF).
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  5. #5
    MichaelSchulz is offline Novice
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2015
    Posts
    4
    There are only two values for Control

  6. #6
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,959
    Try the CROSSTAB emulation?
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  7. #7
    MichaelSchulz is offline Novice
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2015
    Posts
    4
    Hmmn. Well, that might work as a make-do, though the result is nowhere as clean or as readable as the Pivot.

    I do thank you for the suggestion; I appreciate it. I may be able to at least move forward to some degree with this.

    Still…rather hoping for something better.

  8. #8
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,959
    Note that pivot tables/charts removed from Access 2013. Can't build them but should be able to read if built in older version of Access. MS thinks should export raw data and do pivots in Excel.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 4
    Last Post: 08-02-2013, 12:00 PM
  2. Export Data to Excel Pivot Table Loss of Formatting
    By Damian in forum Import/Export Data
    Replies: 1
    Last Post: 05-17-2013, 07:56 PM
  3. Exporting to Excel- losing data from combo box
    By SteveS in forum Import/Export Data
    Replies: 3
    Last Post: 07-17-2012, 01:07 PM
  4. Pivot table - access to excel
    By antagonia in forum Access
    Replies: 3
    Last Post: 12-16-2011, 01:57 PM
  5. Replies: 1
    Last Post: 08-22-2011, 02:09 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums