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

Comparing two different years' data with a line chart

craigfr
I am looking to compare this year's defects to last year's defects (by month) with a two-line graph. So I will need a line chart with two different lines, one that shows YTD # of defects and another for last year's # of defects. The X axis is Months (no years because of comparison), and the Y axis is # of defects.

Right now I have one query which outputs # of defects by day for all years.

I also have two other querys, one which shows last year's defect data and another YTD defect data.

Is there a way to graph these on a line graph with a common (month) X-axis?

Thanks
Sep 24 '07 #1
6 5593
I'm still looking for ideas... is there any way to do this?
Sep 25 '07 #2
Does no one really have any idea how to do this?
Sep 26 '07 #3
TSIGOS1
24
Why Dont Try Puting Them In One Query?
Sep 26 '07 #4
rwalle
47
I would suggest a totalized query for each year , then combine both into another query so now you have 2 rows one for each year, and 12 columns one for each month and you are done, use years as the Y axis and time ( month grouped) as X axis
Sep 20 '10 #5
Mariostg
332 100+
Something like:
Expand|Select|Wrap|Line Numbers
  1. SELECT Count(Defect),theMonth,TheYear FROM DefectTable
  2. Group BY theMonth, TheYear
  3.  
It will give you the count of defect for each each month of each year. Then Bring this into Excel and create different series for each year.
Sep 20 '10 #6
Stewart Ross
2,545 Expert Mod 2GB
This kind of task is what crosstab queries in Access are very good at.

Set up a crosstab query in which the total number of defects in a month is calculated as the value field, the column heading is the month number (using the Month function on the defect date to return the month number) and the year is the left-most of the row fields (using the Year function on the defect date to return the year). You will then have rows which are year-oriented returning columns which are monthly defect totals, for months numbered 1 to 12 (assuming that there are no months in the dataset for which there were no defects).

Excel is indeed the best tool then for comparing these using line graphs, with each year a separate series on the same chart.

-Stewart
Sep 21 '10 #7

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

Similar topics

45
by: Market Mutant | last post by:
I just wonder job selections, job openings and salary level of PHP programer or Perl programmer comparing to Java programmers. Is Java programmer's salary has a minimal of 60K in US? Are there...
22
by: Bryan Guilliams | last post by:
I'm trying to come up with an elegant, simple way to compare two consecutive values from the same table. For instance: SELECT TOP 2 datavalues FROM myTable ORDER BY timestamp DESC That...
1
by: Doug | last post by:
I need to compare two "address" structures within a document, and perform some action if they are not equal. The XML document is a purchase order, with an address at both the header and line...
12
by: Russ | last post by:
I'm interested in setting up a web page where live data can be displayed in real-time on the web page. For example: I would like to display a (nice looking) graph of some data value versus time...
0
by: richardkreidl | last post by:
I have the following hash script that I use to compare two text files. 'Class Public Class FileComparison Public Class FileComparisonException Public Enum ExceptionType U 'Unknown A 'Add...
2
by: ist | last post by:
Hi, I am studying data mining features of SSAS and for a workshop I've created 2 views derived from vTargetMail view of AdventureWorksDW. Train data consists every record except those in Pacific,...
0
by: Just_a_fan | last post by:
Some folks have searched, from time to time, for a dual axis MSChart with different scales on the two Y axes. The sample, extracted from running code I wrote, produces a graph with MSChart (VB9)...
0
by: iheartvba | last post by:
Hi, I have a line graph which shows monthly sales, on the vertical axis it has the amount markers and on the horizontal axis it has month markers formatted in "yy/mm" format. The line shows the...
5
by: CoreyReynolds | last post by:
Hello all, I have some VB code that spits an Access query out into Excel and attempts to create a chart from it. The problem is it spits it into a format that Excel can't really eloquently make a...
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: 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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.