473,386 Members | 1,785 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Want to Forcast Project Completion

Hello all,

I am not very experianced in utilizing loops and recordsets but can not think of any other way to accomplish what i need.

I have a table shown here. I want to forcast out when the projects below will be complete by year complete. So basicly I need to take the average units/day and figure out what the total per year is and create a record for each project and year till the project is closed.

Expand|Select|Wrap|Line Numbers
  1. table1
  2. Project      Units/day    Total_Units
  3. Project 1    4.29         259
  4. Project 2    1.94         152
  5. Project 3    3.19          82
  6. Project 4    2.30          72
  7. Project 5    0.16          70
  8.  
  9.  
  10. Table2
  11. Project      Year      Units_Forcasted
  12. Project 1    2012         100
  13. Project 1    2013         100
  14. Project 1    2014          59
  15. Project 2    2012         125
  16. Project 2    2013          27
Thank you for sharing your expertis
Sep 5 '12 #1
6 1446
zmbd
5,501 Expert Mod 4TB
Normally calculated results are not stored in a table unless needed for auditing or other historical uses.

SO, if I understand you correctly, you need to know in what year the project will be completed yes?

You fail to mention what the work week is... 7 days/week... 5 days/week... are Holidays inculded etc...

Basically.... build yourself a select query, determine the number of years you'll need to reach or exceed the production goal and then use the dateadd function to determine the year ending from the year started - and insert that as a calculated field in the query.

If you really need to have the expansion, then we can talk about Left joins and make table queries.

-z
Sep 5 '12 #2
Rabbit
12,516 Expert Mod 8TB
Your projections seem way off. There seems to be some upper limit on production per year that you're not mentioning. Take project 1 for example, if you're making 4.29 units a day, it would only take 24 working days to hit your goal of 259 units. And yet you have that projected out until 2014. So either you're using some other calculation of which I'm unaware, or you have a hard cap of which I'm unaware.

Even if we assume that you mean 4.29 days a unit rather than 4.29 units a day, the projection calculation is wrong because if you assume a 7 day work week, that's only 85 units in a year.
Sep 5 '12 #3
zmbd
5,501 Expert Mod 4TB
Rabbit,

I'M NOT CRAZY... YEA!!! I'm glad I'm not the only one that couldn't make sense of the two tables in OP for parts... that's why I gave just the general outline to the solution instead of trying to present the caculation as I just didn't have the time to put the old math degree to use on it!
:-)

-z
Sep 6 '12 #4
Sorry when i wrote out the tables i just used example data, i didnt calculate the actual times. What i wanted to show was that i need to see the total every year to the completion of a project. So I can calculate a cost per year for each project. The data is fake, i should have calculated the real stuff or mentioned that in the question.

Days/Week im using is 7

Additional information: I am talking about locomotive projects that i have a set starting value of units needing to be done and a run rate of how many my shops are doing a day. So i need to project completion over the future years to completion
Sep 6 '12 #5
zmbd
5,501 Expert Mod 4TB
No time off for good behavior... :)
Easiest calc for the year's production is to take your units per day number mulitply it by 365 days per year so that you get units produced. (upd/dpy)
Adjust the 365 down for days not worked (holidays and the like).
Now divide the target productio by that number so that you have ((tgt)/(upd/dpy)) which will give you the number of years to complete the production. I guess the question here is if we should round the number up to the next whole year or not

Now we use the DateAdd function and the format to return the year in a calculated field.
Note here I'm not rounding and you'll have to replace my tokens:
Format(DateAdd("y", ((tgt)/(upd/dpy)), startdate), "yyyy")

-z
Sep 6 '12 #6
zmbd
5,501 Expert Mod 4TB
Soulspike:
I moved your new question to a new thead:
http://bytes.com/topic/access/answer...leted-per-year
-z
Sep 6 '12 #7

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: Chris Kilmer | last post by:
I would like to be able to customize the path structure that VS.NET 2003 creates for projects. 1. I'd like to be able to create a project without VS.NET creating a folder for that project. ...
67
by: Steven T. Hatton | last post by:
Some people have suggested the desire for code completion and refined edit-time error detection are an indication of incompetence on the part of the programmer who wants such features. ...
7
by: SpookyET | last post by:
/FooProject /bin (release) /doc /src (only *.cs) /temp (obj files) /test (debug) /build /Visual Studio 2003 /Visual Studio 2005
3
by: Amongin Ewinyu | last post by:
Hi, I'm not sure if this is the right forum to post this question. I'm using VB .NET to create a deployment project. I want the project to request the user to enter a product key. I then...
7
by: pvdg42 | last post by:
When we use Visual Studio in beginning C++ classes, we routinely follow the scenario below. Create a Win 32 Console Project (empty). Add a C++ source code file to the project.
4
by: randfish | last post by:
We're seeking to hire a local (Seattle-based) PHP/MySQL coder to handle a project, but have been having no success. I was hoping to get your feedback on whether the pricing, timeframe and job...
20
by: venkatmail20034u | last post by:
hai to everybody, i desired to do a project in c? if u have idea about what types of problem solved by the c language? and also specify if u have any project title with description please specify...
2
by: joerozario | last post by:
I have created a windows application. Like windows search program. So I want my project link should be shown in folder right click. I have added values in the registry manually in I have got as I...
2
by: yougesh | last post by:
i want some project in jsp and servlet for practise plz send some zip format project to thanks
5
by: vikvikash | last post by:
i am creating a VB.Net Project & want the project to be run on multiple systems without creating the database and the tables required for the project again & again. i want to know the way to do so?
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.