Results 1 to 2 of 2
  1. #1
    McArthurGDM is offline Competent Performer
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jul 2014
    Posts
    215

    Current Year Metrics next to Prior Year Metrics Display

    I am trying to figure out a way to get prior year metrics next to current year metrics on a report. That is:

    Month Current Year Prior Year
    Jan 42 4
    Feb 63 33
    Mar 17 73
    Apr 93 83
    May 88 12
    Jun 47 94
    Jul 17 1
    Aug 88 41
    Sep 62 11
    Oct 0 63
    Nov 99 7
    Dec 38 47

    The problem lies in the fact that I am querying based on the current year and, of course, my query displays both years worth of data in 1 column, not two separate ones.



    Any suggestions?

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    Options:

    Maybe a crosstab query but building a stable report based on crosstab is not easy.

    Nested subquery - review http://allenbrowne.com/subquery-01.html#YTD

    Domain aggregate functions.
    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. Get first day and month of current year
    By Ruegen in forum Programming
    Replies: 3
    Last Post: 12-01-2014, 06:45 PM
  2. Replies: 1
    Last Post: 10-06-2014, 12:20 PM
  3. Replies: 3
    Last Post: 04-10-2014, 02:58 AM
  4. Replies: 4
    Last Post: 01-09-2013, 11:16 AM
  5. checking if current year
    By snoopy in forum Queries
    Replies: 2
    Last Post: 06-20-2012, 01:46 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