Line chart report

  • Thread starter Thread starter Joel Allen
  • Start date Start date
J

Joel Allen

Hello,

I made a Line Chart report using the Chart Wizard.

In the Y axis (Data) I have [Quantity] by sum.
In the X axis (Axis)I have [Date] by month.
In the Series box I have [Date] by year.

This kind of gives me what I want, but along the X axis I have Jan '01, Feb
'01, March '01, Jan '02, Feb '02, March '02. I just want Jan, Feb, March,
and there would be two lines above it representing 2001 and 2002 that would
kind of overlap eachother to show comparison.

I hope that makes sense.

Thank you
-Joel
 
I think you can change your row source to a crosstab with the year as the
column heading and month number as the row heading.
 
Here's what I have now. Can you please help?

TRANSFORM Sum([Qty]) AS [SumOfQty] SELECT (Format([Date],"MMM 'YY")) FROM
[Table1] GROUP BY (Year([Date])*12 + Month([Date])-1),(Format([Date],"MMM
'YY")) PIVOT (Year([Date]));

THanks.

-Joel

Duane Hookom said:
I think you can change your row source to a crosstab with the year as the
column heading and month number as the row heading.

--
Duane Hookom
MS Access MVP


Joel Allen said:
Hello,

I made a Line Chart report using the Chart Wizard.

In the Y axis (Data) I have [Quantity] by sum.
In the X axis (Axis)I have [Date] by month.
In the Series box I have [Date] by year.

This kind of gives me what I want, but along the X axis I have Jan '01,
Feb '01, March '01, Jan '02, Feb '02, March '02. I just want Jan, Feb,
March, and there would be two lines above it representing 2001 and 2002
that would kind of overlap eachother to show comparison.

I hope that makes sense.

Thank you
-Joel
 
Try this
TRANSFORM Sum([Qty]) AS [SumOfQty]
SELECT Format([Date],"MM")
FROM [Table1]
GROUP BY Format([Date],"MM")
PIVOT (Year([Date]));

--
Duane Hookom
MS Access MVP


Joel Allen said:
Here's what I have now. Can you please help?

TRANSFORM Sum([Qty]) AS [SumOfQty] SELECT (Format([Date],"MMM 'YY")) FROM
[Table1] GROUP BY (Year([Date])*12 +
Month([Date])-1),(Format([Date],"MMM 'YY")) PIVOT (Year([Date]));

THanks.

-Joel

Duane Hookom said:
I think you can change your row source to a crosstab with the year as the
column heading and month number as the row heading.

--
Duane Hookom
MS Access MVP


Joel Allen said:
Hello,

I made a Line Chart report using the Chart Wizard.

In the Y axis (Data) I have [Quantity] by sum.
In the X axis (Axis)I have [Date] by month.
In the Series box I have [Date] by year.

This kind of gives me what I want, but along the X axis I have Jan '01,
Feb '01, March '01, Jan '02, Feb '02, March '02. I just want Jan, Feb,
March, and there would be two lines above it representing 2001 and 2002
that would kind of overlap eachother to show comparison.

I hope that makes sense.

Thank you
-Joel
 
Back
Top