I've been unable to find anything in the archives about this so far, but what I'm attempting to do is create a query based on tables with three columns; for the express purpose of creating a graph on a report.
The first field is the day/month/year.
Second field is forecast month to date.
This much of the data is of the form:
The full data set would look like this:
Ultimately I wish to create a line graph out of the forecast data and a Bar graph out of the actuals, both on the same plot so that we can track actuals vs forecast on a daily basis on this graph.
Field Names and Values changed to Protect the Guilty.
Kyle
The first field is the day/month/year.
Second field is forecast month to date.
This much of the data is of the form:
Date ForecastbyDay
3/1/04 100
3/2/04 200
3/3/04 300 etc...
Third Field is a cumulative Actual Data Month to Date.3/1/04 100
3/2/04 200
3/3/04 300 etc...
The full data set would look like this:
Date ForecastbyDay CumulActualsbyDay
3/1/04 100 245
3/2/04 200 367
3/3/04 300 418
3/4/04 400 596 etc...
So the forecast data by day is merely a calculation that takes the total forecast number for the month (3100) divided by the number of days. This value I can obtain without difficulty. The Actual data set is entered and I can tabulate this information by day. What I can not figure out how to do is take the actual daily values of: 245, 122, 51, 178 and create the cumulative total of 245, 367, 418, 596 etc on a daily running total.3/1/04 100 245
3/2/04 200 367
3/3/04 300 418
3/4/04 400 596 etc...
Ultimately I wish to create a line graph out of the forecast data and a Bar graph out of the actuals, both on the same plot so that we can track actuals vs forecast on a daily basis on this graph.
Field Names and Values changed to Protect the Guilty.
Kyle