Results 1 to 3 of 3
  1. #1
    dutchman is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Nov 2014
    Posts
    4

    query to project future sales by week

    Newbie here.Thankyou to all who post solutions to issues over the years.Using that information and tweaking it forour own use, we’ve been able to build a “good sized” database.We are now looking to do something a littlemore complicated. Every week, we purchase “widgets”.The number purchased varies each and everyweek.The vendors the widgets arepurchased from varies week by week.We thenhold the widgets for a few weeks in order to do some processing before weresell them.We typically start resellingthem 20 weeks after purchase.We projectwe will sell a percentage during week 20, another percentage during week 21,etc.The following chart outlines ourtypical patterns.


    Week In Processing Week 20 Week 21 Week 22 Week 23 Week 24 Week 25 Week 26 Week 27
    Week 1 10% 20% 20% 20% 30%
    Week 2 10% 20% 20% 20% 30%
    Week 3 10% 20% 20% 20% 30%
    Week 4 10% 20% 20% 20% 30%
    Week 5 10% 20% 20% 20% 20%

    As you can see, at times we may be able to purchase widgetsthat don’t need as much time/processing to those widgets.We may purchase them in Week 5 but only need15 weeks of processing so we can start selling them in Week 20.
    We “simply” want to add up all the projected sales for eachweek in the future.We will create areport to give to the sales staff so they can plan ahead.
    I currently have all the purchases in a table.Each purchase is listed individually withtheir DateArrived.Each purchase has additionalinformation also in that table that is sorted or queried for other reports.

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    Access can only work with the data you give it. Options:

    1. table with these percentage values for each week and then in query join to a query of summarized purchases records.

    2. expression in query that returns a percentage value based on week number

    Either way, it looks like a CROSSTAB query will be needed to produce the output you show. Building a report to run perpetually based on a CROSSTAB is not easy. Review http://allenbrowne.com/ser-67.html
    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
    dutchman is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Nov 2014
    Posts
    4
    Thank you so much. Will start putting it together...

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

Similar Threads

  1. Replies: 3
    Last Post: 09-19-2013, 10:18 AM
  2. Replies: 0
    Last Post: 12-13-2012, 03:18 AM
  3. Query criterion for today and the future
    By scoughlan in forum Queries
    Replies: 3
    Last Post: 01-16-2012, 07:28 PM
  4. Replies: 5
    Last Post: 06-30-2011, 02:24 AM
  5. Property sales and rentals project
    By dannybhoy in forum Database Design
    Replies: 11
    Last Post: 02-22-2011, 02:30 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