Results 1 to 2 of 2
  1. #1
    v!ctor is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Oct 2012
    Location
    Greece
    Posts
    17

    Calculate Sales of Previous Months

    Hello

    Please I would like some help with a function.
    I need a function to calculate sales of all previous months of current year without sales of current month.

    e.g for today
    calculate sales from January to August



    thank you

  2. #2
    alansidman's Avatar
    alansidman is offline VIP
    Windows 7 32bit Access 2010 32bit
    Join Date
    Apr 2010
    Location
    Steamboat Springs
    Posts
    2,529
    Run an aggregate query Group on the months, Sum on the Sales and set your criteria for the months field to exclude the current month. How you exclude your current month will depend upon how you have your date field established. You may have to use between function if it is truly in date format with years.

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

Similar Threads

  1. Replies: 1
    Last Post: 02-16-2013, 09:25 AM
  2. Query Help - calculate variance previous year
    By brtucker in forum Queries
    Replies: 1
    Last Post: 01-31-2013, 05:40 PM
  3. Calculate Percentage based on previous column
    By VictoriaAlbert in forum Queries
    Replies: 1
    Last Post: 08-13-2011, 01:30 PM
  4. Replies: 1
    Last Post: 11-12-2010, 01:16 AM
  5. Replies: 11
    Last Post: 08-04-2010, 04: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