Results 1 to 2 of 2
  1. #1
    katejohnson is offline Novice
    Windows XP Access 2010 32bit
    Join Date
    Oct 2012
    Posts
    3

    Calculating M/M, Q/Q, Y/Y Sales Data from a database with weekly totals

    My database is organized by [Week Ending] with many fields of data with performance measures.



    I have created a monthly dashboard report that i want to show the Monthly totals for all of the performance measures and I want to calculate the M/M, Q/Q, and Y/Y sales.

    I have grouped the [Week Ending] by month on my report and used a SUM or AVG functions for all of the performance measures to get the monthly totals. This worked fine, but I can't figure out how to calculate the M/M, etc.

    Thanks!

  2. #2
    rpeare is offline VIP
    Windows XP Access 2003
    Join Date
    Jul 2011
    Posts
    5,442
    Create a series of labels in your query

    MonthLabel: datepart("yyyy", [week ending]) & right(datepart("m",[week ending]))
    QuarterLabel: datepart("yyyy", [week ending]) & iif(cint(datepart("m",[week ending])) between 1 and 3, "-Q1",iif(cint(datepart("m",[week ending])) between 4 and 6, "-Q2",iif(cint(datepart("m",[week ending])) between 7 and 9, "-Q3",iif(cint(datepart("m",[week ending])) between 10 and 12, "-Q4",null))))
    YearLabel: datepart("yyyy", [week ending])

    Then on your report you can summarize by any one of these labels

    NOTE: I did this without actually running a test so you may have to play with the parentheses to get it right.

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

Similar Threads

  1. Calculating totals in a report
    By Jamescdawson in forum Reports
    Replies: 20
    Last Post: 06-14-2012, 02:33 PM
  2. Weekly Totals
    By tcheck in forum Access
    Replies: 4
    Last Post: 09-27-2011, 09:35 AM
  3. difference between weekly sales
    By Fabdav in forum Access
    Replies: 1
    Last Post: 09-11-2011, 06:57 PM
  4. Replies: 42
    Last Post: 07-13-2010, 02:49 PM
  5. Calculating Sub Totals in a Query
    By cassidym in forum Queries
    Replies: 2
    Last Post: 06-09-2010, 01:26 PM

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