Results 1 to 3 of 3
  1. #1
    stumped is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Sep 2012
    Posts
    20

    Tricky Analysis??

    Maybe its just me!!



    I have a table of helpdesk calls that goes back years. The table contains thousands of records each record containing a call open date and a call closed date.

    I would like to create a query that will be give me the number of calls open on a month by month basis. Its more tricky than I expected. Anyone got any suggestions please?

    Thanks.

  2. #2
    RayMilhon is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    Aug 2011
    Location
    Southern California
    Posts
    1,071
    It's a 2 step process. First create a query that includes a column to convert the call open date to a Year Month format such as 201009. Call it callopenmonth or something like that. Then create a second query with 2 columns for callopenmonth 1 as a group by and 1 as a count. The reason for doing the Year Month format is for sorting if you need to display the year month differently include a column for the format you want.

    Code:
    Query1:
    
    Select format([datefield],"mmm yyyy") As properformat, format([datefield],"yyyymm") as sortformat
    from sometable
    
    Query2:
    Select properformat, sortformat, Count([sortformat])
    from query1
    Group By properformat,sortformat
    order by sortformat

  3. #3
    stumped is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Sep 2012
    Posts
    20
    Ok, thanks.

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

Similar Threads

  1. Cash Flow Analysis
    By cbh35711 in forum Access
    Replies: 15
    Last Post: 09-09-2014, 12:11 PM
  2. Tricky calculation to perform
    By leeli67 in forum Access
    Replies: 122
    Last Post: 04-15-2012, 05:06 PM
  3. Data Analysis Direction
    By canyon289 in forum Access
    Replies: 6
    Last Post: 03-05-2012, 11:51 PM
  4. tricky trash can counting
    By M_Herb in forum Access
    Replies: 3
    Last Post: 02-16-2012, 10:42 AM
  5. Need Help with Queries-Trade Analysis
    By nybanshee in forum Queries
    Replies: 0
    Last Post: 03-08-2008, 11:50 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