I have a line graph that charts Gross Profit $ earned each month. In some months, there was no GP reported, so technically the value would be "$0". But since nothing was entered for the $0 months, the value is just skipped over in the chart.
My data is like the following example:
DATE GP
10/3/03 $7,506
10/6/03 $4,321
10/30/03 $1,245
12/4/03 $5,634
12/17/03 $232
I am running a Totals query as the basis for my chart (using the datepart function for month and year) to get the following summary:
FirstofDATE SumofGP GroupbyDPmonth GroupbyDPyear
10/3/03 $13,072 10 03
12/4/03 $5,866 12 03
So the chart would show a line going from $13,072 in October to $5866 in December - but would show no mark at all in November. I want it to show $0 in November.
Basically I want to add a value like ...
First of DATE Sumof GP
11/1/03 $0 ....
to the query for every month with no data entered.
I thought about throwing dummy $0's in each month in the actual data table, or making a table with each month and year and doing a join query showing all values from the month/year table and only matching values from the GP table - then filling in null GP values with a 0. But both seem sloppy, long-winded ways of accomplishing this. I think the solution may lie somewhere in the DateSerial concept, but I'm not familiar with it.
Anyone have any suggestions???
My data is like the following example:
DATE GP
10/3/03 $7,506
10/6/03 $4,321
10/30/03 $1,245
12/4/03 $5,634
12/17/03 $232
I am running a Totals query as the basis for my chart (using the datepart function for month and year) to get the following summary:
FirstofDATE SumofGP GroupbyDPmonth GroupbyDPyear
10/3/03 $13,072 10 03
12/4/03 $5,866 12 03
So the chart would show a line going from $13,072 in October to $5866 in December - but would show no mark at all in November. I want it to show $0 in November.
Basically I want to add a value like ...
First of DATE Sumof GP
11/1/03 $0 ....
to the query for every month with no data entered.
I thought about throwing dummy $0's in each month in the actual data table, or making a table with each month and year and doing a join query showing all values from the month/year table and only matching values from the GP table - then filling in null GP values with a 0. But both seem sloppy, long-winded ways of accomplishing this. I think the solution may lie somewhere in the DateSerial concept, but I'm not familiar with it.
Anyone have any suggestions???