I beleive a crosstab query will be adequate. Are you comparing a day this year to the same day last year? If so, can you not set a where condition in the crosstab to only display either date() or date()-365. This will give you 2 rows, one with todays figures and one with last years figures. The graph can then be based on this query.