473,378 Members | 1,330 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,378 software developers and data experts.

Difficult Graph Needed

I need to graph the following

StartDate $atstart EndDAte $atEnd
12/20/04 100 2/20/05 100
12/10/04 50 1/1/05 50

basically when I start a job i want to take 50% of the budget and when
i finish take the other 50%.

My graph data points would look like this.
12/04 150
1/05 200
2/05 300

How can I get this to work? Thanks

Nov 13 '05 #1
1 1147
turtle wrote:
I need to graph the following

StartDate $atstart EndDAte $atEnd
12/20/04 100 2/20/05 100
12/10/04 50 1/1/05 50

basically when I start a job i want to take 50% of the budget and when i finish take the other 50%.

My graph data points would look like this.
12/04 150
1/05 200
2/05 300

How can I get this to work? Thanks


This worked for me using A97:

tblBudget:
BudgetID StartDate EndDate TotalBudget
1 12/20/04 2/20/05 $200.00
2 12/10/04 1/1/05 $100.00

qryDisplayMonths:

SELECT Format([StartDate], 'm/yy') AS DisplayMonth,
DateSerial(Year([StartDate]), Month([StartDate]), 1) AS theMonth FROM
tblBudget UNION SELECT Format([EndDate], 'm/yy') AS DisplayMonth,
DateSerial(Year([EndDate]), Month([EndDate]), 1) AS theMonth FROM
tblBudget;

OUTPUT:
DisplayMonth theMonth
12/04 12/1/04
1/05 1/1/05
2/05 2/1/05

qryDisplayCumulativeMonthlyBudget:

SELECT A.DisplayMonth, Nz((SELECT Sum(Nz([TotalBudget]) / 2.0) FROM
tblBudget WHERE StartDate < DateAdd("m", 1, A.theMonth)))+Nz((SELECT
Sum(Nz([TotalBudget]) / 2.0) FROM tblBudget WHERE EndDate <
DateAdd("m", 1, A.theMonth))) AS Budget FROM qryDisplayMonths AS A
ORDER BY A.theMonth;

OUTPUT:
DisplayMonth Budget
12/04 150
1/05 200
2/05 300

Was that the part you needed help with?

James A. Fortune

Nov 13 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

15
by: Timin Uram | last post by:
I'm not sure if this forum is the correct place to post this, but I couldn't think of any other group. I would really appreciate any help you could give me. FINAL GOAL OF MY APPLICATION:...
9
by: Lilith | last post by:
Is there a python module somewhere (been searching today, no luck) which has efficiently coded various graph-handling routines, such as finding the shortest path through a graph, or the set of all...
25
by: Magnus Lie Hetland | last post by:
Is there any interest in a (hypothetical) standard graph API (with 'graph' meaning a network, consisting of nodes and edges)? Yes, we have the standard ways of implementing graphs through (e.g.)...
1
by: Thomas John Youngquist | last post by:
I am trying to create a graph in an .aspx page and having no luck even getting started. It seems that all graphs I find out on the net are actually bit maps. Is there an accepted method for...
7
by: Dax | last post by:
Hi, I'm using boost library, I want to create a graph of a library in c++, and, for example, every leave is a book, inside it there are some variables, like title, if is available, description,...
2
by: SubNeo | last post by:
hello i have a problem - i need an algorithm which computes the minimum number of disjoint path in a labirynth. but i think that using a graph to do it is a good idea, but all i've found is...
3
by: Jeff | last post by:
Hi I have a report with a graph on it and want to change the minimum and maximum values for the value axis when it is previewed. This can't be done by adding code in the Open event as once the...
1
by: Robin Tucker | last post by:
Hi, I am embedding various things into a Microsoft Word document. I want to embed and automate a chart control. I can embed an Excel.Chart.8 into my Word document manually (no problemo), but...
1
by: Roger Oshaug | last post by:
Access 2003 I have a simple line graph with one line and I need an extra horizontal line in that graph. I want something similar to this, (without the vertical line): ...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...

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.