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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Crosstab With Weeks as Columns

Status
Not open for further replies.

fdsouth

Technical User
Jun 6, 2001
61
US
I am trying to pull data from a table that has production volumes by date. What I want to do is create a crosstab with the different operations as rows and consecutive weeks (beginning Jan 1, 2007) as the columns. For example:


Seq Wk1 Wk2 Wk3 Wk4...
100 50 75 80 90
200 50 75 80 90
300 50 75 80 90
400 50 75 80 90

Sum 200 300 320 360

Any suggestions? I am having quite an issue with this seemingly simple idea. I can create the rows and details. The main problem I am having is creating the columns grouped by week (instead of by day which is how the records are stored in the table).
 
In the CrossTab expert, assuming the date field in already a row or column, click the 'Group Options...' button and change the for each option to 'for each week'.

- Ido

view, e-mail, export, burst, distribute, and schedule Crystal Reports.
 
Thanks. That did it. I knew it had to be something pretty simple.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top