Results 1 to 7 of 7
  1. #1
    Xarkath is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    Apr 2013
    Location
    Millcreek WA
    Posts
    92

    Include pivot table "like" summaries in a report footer

    Hello,



    I have a report based on a cross tab query of insurance premiums. The report contains a family description for each subscriber and there are approximately 30 possible descriptions. Is it possible for the report to count and summarize each of the descriptions? Something like a pivot table except that I don't want both count and grand total columns, just the count. If so how I would set it up? I have accomplished this by building extra queries and reports but it seems a bit sloppy on the backend so if it is possible I would rather build it right into the main report.

    The end result would look something like:
    Description Count
    Single 10
    Subcriber & spouse 50
    Family with 1 child 45
    Family with 3 children 24


    Thanks

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,626
    If the report were based on a regular query, expression in textboxes in footer section:

    =Sum(IIf([Description]="Single",1,0))

    etc.

    Are the descriptions pivoted as the column headers in the crosstab?
    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
    Xarkath is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    Apr 2013
    Location
    Millcreek WA
    Posts
    92
    Hi June7,

    The descriptions are not pivoted. The cross tab is used to list the rates by benefit elections and it is those benefits that are pivoted into columns. The family descriptions start and end as a single column throughout the database.

    So if I understand your response correctly I would need to enter that formula for each variable?

    Thanks

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,626
    I really don't understand the need for calculation. If the descriptions are the row headers then isn't there already an aggregate value for each? Perhaps if you provide sample data and example of desired output or even posted the db, could better advise.
    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
    Xarkath is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    Apr 2013
    Location
    Millcreek WA
    Posts
    92
    Hello,

    The security setting at work will not allow me to post an image. Basically the output has the following headers:
    Group - Location - Member ID - Subscriber Name - Family Description - Medical Premium - Dental Premium - Vision Premium - Premium totals

    The report counts the total number of subscribers just fine but our clients want the report to break it down by the family description. Of the total number of subscribers X are Subscriber only, X are Subscriber and spouse, X are Subscriber and child, and so on. All this is easy enough as separate componets, the trick seems to be getting the report to include it without the need for subreports.

    Thanks

  6. #6
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,626
    Okay, options:

    1. report Grouping & Sorting, group on Family Description field with everything else in Detail section and Count() function in Group footer - I don't have much call to use crosstab but think should work

    2. textboxes in footer section with the conditional calc for each Family Description value
    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
    Xarkath is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    Apr 2013
    Location
    Millcreek WA
    Posts
    92
    Thank you. Niether is what I was hoping for but both are better than I really expected and I truely appreciate the help.

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

Similar Threads

  1. Using "Count" function in a report footer
    By GraeagleBill in forum Reports
    Replies: 5
    Last Post: 05-11-2013, 03:42 PM
  2. Column sum works in "Detail" but not "Footer"
    By Doodlebug2000 in forum Reports
    Replies: 1
    Last Post: 12-10-2012, 03:20 PM
  3. Using "Include" or "Copy" in VBA
    By EddieN1 in forum Programming
    Replies: 3
    Last Post: 01-03-2012, 06:54 PM
  4. Report Footer "Missing Operator" message
    By ewassmer in forum Reports
    Replies: 2
    Last Post: 09-28-2011, 11:03 AM
  5. Replies: 3
    Last Post: 07-23-2011, 09:12 AM

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