Results 1 to 5 of 5
  1. #1
    joelgiro is offline Novice
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2017
    Posts
    3

    12 Month Rolling Income Query

    Hi Everyone,



    I'm trying to create a cross tab query that calculates the 12 month rolling income for several different product. I have the monthly income but I'm struggling to think of a way to continuously sum the last 12 months. (Jan to Dec, Feb to Jan, Mar To Feb etc) in access. I attached an excel example (Yellow Highlight) of essentially what I'd like. Hopefully this is possible. I appreciate your insights.
    Attached Files Attached Files

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,525
    I have a 'report' table. It has the 12 columns. (plus the Product)
    you can either:
    make a crosstab to append to this table
    or
    in a macro, run 12 append queries that post data to the report table 1 column at a time (for that time range)
    then sum all columns in a final query to view the results

  3. #3
    June7's Avatar
    June7 is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,919
    Maybe this tutorial has solution for you http://www.fmsinc.com/MicrosoftAcces...ort/index.html
    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.

  4. #4
    joelgiro is offline Novice
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2017
    Posts
    3
    Thanks for the help. I'll let you know how it turns out.

  5. #5
    joelgiro is offline Novice
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2017
    Posts
    3
    Thanks for you help. I got what I needed!

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

Similar Threads

  1. Rolling 3 month and 12 month Calculation
    By REGeekker in forum Programming
    Replies: 10
    Last Post: 03-30-2015, 07:29 PM
  2. Replies: 43
    Last Post: 08-06-2014, 08:21 PM
  3. Replies: 2
    Last Post: 04-29-2014, 03:04 AM
  4. Rolling 12 or 6 Month Query
    By Shakenaw in forum Access
    Replies: 2
    Last Post: 09-22-2011, 09:24 AM
  5. Rolling 3 Month sums
    By michaeljohnh in forum Reports
    Replies: 1
    Last Post: 11-08-2010, 05:51 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