How to display in table format in Crystal Reports 8.5

Posted on 2006-04-03
Medium Priority
Last Modified: 2012-06-21
Actually  I have  a table Consumption which contains the fileds date,Volume.
Data for these fields are

 01/01/2000, 1000
 02/01/2000, 2000
03/01/2000, 3000
04/01/2000, 3000
05/01/2000, 3000
06/01/2000, 3000
01/01/2001 , 2000
02/01/2001,  4000

I can call the database and display the line items one by one. But i want is to display these in different fomat.The format is below.
Month                  2000        2001            2002   2003

jan                      1000         2000
feb                      2000         3000
march                  3000
april                     3000
may                     3000
june                    4000

Do any body explain me how to do this one.
Question by:pavan738
LVL 34

Expert Comment

by:Brian Crowe
ID: 16364560
You'll want to group by month.  Create a formula to calculate the month of the date value and group on that.

If the years are static then you can create separate formulas for each year

Formula: 2000

If Year({datefield]) = 2000 Then

repeat for each year you want a column for

create summaries for each of these "year" formulas grouped by month and display those.
LVL 16

Accepted Solution

wykabryan earned 500 total points
ID: 16364700
Or a simple cross tab query would give you this same results.

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I hate sub reports and always consider them the last resort in any reporting solution.  The negative effect on performance and maintainability is just not worth the easy ride they give the report writer.  Nine times out of ten reporting requirements…
Hot fix for .Net Crystal Reports 10.2.3600.0 to fix problems with sub reports running on 64 bit operating systems ISSUE: Reports which contain subreports fail with error "Missing Parameter Value" DEPLOYMENT SERVER OS: Windows 2008 with 64 bi…
This Micro Tutorial will teach you how to add a cinematic look to any film or video out there. There are very few simple steps that you will follow to do so. This will be demonstrated using Adobe Premiere Pro CS6.
Integration Management Part 2
Suggested Courses

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question