Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Manual Cross-tab

Status
Not open for further replies.

MadCatmk2

Programmer
Oct 3, 2003
145
GB
Hi all

I'm trying to do a cross-tab table to show a count of visits for each month for a given initial year and a given last year. I know i could do this using the cross tab expert apart from one thing. The expert doesn't seem to allow a column that stores the difference between the yearly values.

the table should look something like this:

2002 2003 Diff
Jan 24032 27032 3000
Feb 16000 17000 1000
etc...

The problem i'm having is how to set up a count for the two years for each month. Initially i have grouped on the month field. COuld someone please enlighten me as to how to count the records that only match the year that is being calculated.

Hope this makes sense

Thanks in advance
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top