Report By Year
- From: "Ryan" <Tyveil@xxxxxxxxxxxxxxxxx>
- Date: Tue, 20 Mar 2007 09:53:21 -0500
I have a SQL view that shows data by Category and Year - so the data may
look something like this.
Category - Year - Amount
Fruit - 2006 - $12,000
Fruit - 2007 - $16,000
Vegetables - 2006 - $15,000
Vegatables - 2007 - $25,000
Say I want to show that data in Tabular view with Category being the Y-Axis
and Year being the X-Axis, how would I go about doing this? I'm having a
hard time trying to figure out where to start. An Access-style report
doesn't seem to work because I have no way (that I know of) to have a
dynamic X-axis (years may vary based on what report the user requests). Is
the SQL query good enough or do I need to do something with the query in
order to get the years into separate columns (instead of a Year column as
above I would have a 2006 and a 2007 column containing the amounts for those
years)? A full solution may not be necessary if anyone could just point me
in the right direction to start.
Thanks for any assistance!
Ryan
.
- Follow-Ups:
- Re: Report By Year
- From: Branco Medeiros
- Re: Report By Year
- Prev by Date: Good answer
- Next by Date: Re: Help with a long running process?
- Previous by thread: CodeDom example
- Next by thread: Re: Report By Year
- Index(es):
Relevant Pages
|