Results 1 to 3 of 3
  1. #1
    kagoodwin13 is offline Competent Performer
    Windows 7 64bit Access 2013
    Join Date
    Feb 2012
    Posts
    181

    Forecast CrossTab Query

    I have been tasked with creating a forecast report in Access. This is something I think Excel does well, but I would like to integrate this functionality with an existing Access database if possible. I have attached the Excel spreadsheet for example. It may be easier to look at the spreadsheet than interpret my rambling below.



    What I am trying to do is create a forecast of customer support tickets that will be opened in the next 12 months. This can then be used to calculate staffing (headcount) requirements, as well as anticipate growth in demand from new customers that will come on board later.

    The number of tickets is determined by an average of previous data. I already have this figured out.

    After the transition date (from design to support) has been met, I would like the query to add the average from one customer to the remaining customers, so that there is a progressive sum of average tickets. In the Excel file, it is the "Desired Results" tab.

    I have made a cross-tab query to try to accomplish this, however the cross-tab query only copies the average for the month of the transition date itself, not every month after the transition date. In the Excel file, it is the "Current Results" tab.

    Is there a way for the data to keep repeating after the transition date has been met? Should I use a different style of query other than cross-tab? Or is this even possible in Access at all?

    Thanks in advance!

    Ticket Forecast Example.zip

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,550
    Cross-tab seems the perfect way to present this data.

    If you dont like that, then you can build a 'report' table, empty it , then append the data you need to it and run the report off that.

  3. #3
    kagoodwin13 is offline Competent Performer
    Windows 7 64bit Access 2013
    Join Date
    Feb 2012
    Posts
    181
    Had to get creative: I had to manually program my own columns, so that I could use the formula to fill in the forecast amounts in each month. The only downside is that it doesn't "roll": it does not remove columns as they pass, or add new ones in the future. But this works for now.

    SQL query is:
    Code:
    SELECT qryACCOUNT_USER_CATEGORY2.Intacct_ID, qryACCOUNT_USER_CATEGORY2.Average_Tickets_Per_Month, tblTRANSITION_DATE.Transition_Date,
    IIf([Transition_Date]<#9/1/2014#,[Average_Tickets_Per_Month],0) AS Sep14,
    IIf([Transition_Date]<#10/1/2014#,[Average_Tickets_Per_Month],0) AS Oct14,
    IIf([Transition_Date]<#11/1/2014#,[Average_Tickets_Per_Month],0) AS Nov14,
    IIf([Transition_Date]<#12/1/2014#,[Average_Tickets_Per_Month],0) AS Dec14,
    IIf([Transition_Date]<#1/1/2015#,[Average_Tickets_Per_Month],0) AS Jan15,
    IIf([Transition_Date]<#2/1/2015#,[Average_Tickets_Per_Month],0) AS Feb15,
    IIf([Transition_Date]<#3/1/2015#,[Average_Tickets_Per_Month],0) AS Mar15,
    IIf([Transition_Date]<#4/1/2015#,[Average_Tickets_Per_Month],0) AS Apr15,
    IIf([Transition_Date]<#5/1/2015#,[Average_Tickets_Per_Month],0) AS May15
    FROM tblTRANSITION_DATE
         INNER JOIN qryACCOUNT_USER_CATEGORY2
         ON tblTRANSITION_DATE.Intacct_ID = qryACCOUNT_USER_CATEGORY2.Intacct_ID;
    Screenshot attached
    Click image for larger version. 

Name:	forecast2.png 
Views:	9 
Size:	22.8 KB 
ID:	18134

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

Similar Threads

  1. Need to use Query to forecast numbers
    By kholmsley in forum Queries
    Replies: 7
    Last Post: 02-05-2013, 02:12 PM
  2. Replies: 13
    Last Post: 04-20-2012, 05:47 AM
  3. forecast job completion times
    By diverse1 in forum Queries
    Replies: 1
    Last Post: 10-05-2011, 01:35 PM
  4. Query for Forecast Trend
    By cacosta35 in forum Access
    Replies: 0
    Last Post: 07-07-2011, 12:28 PM
  5. Forecast Query with stepwise increasing year
    By theracer06 in forum Queries
    Replies: 1
    Last Post: 08-12-2010, 06:08 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