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

Grouping by Year

Status
Not open for further replies.

Viscount

IS-IT--Management
Oct 10, 2003
85
GB
I have a report that spans about 20 years but I want to group the data by year so I can put this information into a graph.

Can somone tell me how to do this.?

Thanks

Vis (normally a Crystal User..!)
 
The simplest way is to create a new variable in the report as =YEAR(<datefield>)

This variable can then be used inn thereport (using slice & dice) to insert the field. Remove the original date field from the report and the measures will automatically be accumulated.

The new variable can be treated almost exactly like a field retrieved from the database .
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top