Results 1 to 3 of 3
  1. #1
    jtmott is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Oct 2013
    Posts
    17

    Average percent by month query

    Hi I have a table that has a date field formatted to mm/dd/yyyy (01/01/2013). it has another field that shows percent of an order shipped on time.
    the query I'm trying to create would show the average percent by month.


    Example:
    January 80%
    February 90%
    March 100%

    My big problem stims from trying to group by month.
    I would appreciate any help I can get.
    Thanks

  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
    Try:

    SELECT Format([datefield],"YYYY/MM") AS YrMo, Avg([percentfield]) GROUP BY Format([datefield],"YYYY/MM");
    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
    jtmott is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Oct 2013
    Posts
    17
    Thank you it worked just like I needed.

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

Similar Threads

  1. Replies: 1
    Last Post: 07-17-2013, 02:34 PM
  2. Replies: 6
    Last Post: 10-17-2012, 03:01 PM
  3. percent query rounding less than .5 up
    By jtmo3 in forum Queries
    Replies: 3
    Last Post: 05-04-2012, 02:52 PM
  4. Replies: 5
    Last Post: 07-29-2011, 12:55 AM
  5. how to calculate Percent in an update query?
    By newtoAccess in forum Queries
    Replies: 4
    Last Post: 11-23-2010, 10:11 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