Cross Tab Craziness in Crystal Reports
page 1 of 5
Published: 08 Jul 2008
Abstract
Many times beginning Crystal Reports authors overlook the powerful feature of cross tabs, in this article we discuss the basics of creating and formatting cross tabulations in Crystal Reports 2008.
by Jeff McWherter
Feedback
Average Rating: 
Views (Total / Last 10 Days): 10295/ 444

Introduction

 A cross tabulation is a densely populated report or matrix (a rectangular table of elements or entries). Cross tabs resemble spread sheets, and if you are working with data that requires multiple cells that make up a grid consisting of rows and columns, a cross tab is the best tool for the job.  

The development tips in this article are primarily intended for developers without much experience with Crystal Reports.  This article assumes the reader has a basic knowledge of Crystal Reports data access.

Since cross tabs summarize data both vertically and horizontally, this provides users with a spreadsheet like interface that many users are already accustom to. Along with providing users with a known interface, cross tabs save space, allow for custom formatting of each cell, and allow for data expansion. These are features you would not normally have when using a typical grouping report.

Many times beginning Crystal Reports authors overlook the powerful feature of cross tabs; in this article we discuss the basics of creating and formatting cross tabulations in Crystal Reports 2008. We cover three major areas with cross tabs in this article: Getting data into the cross tab, formatting, and some more advanced cross tab features. The following examples are created from the SQL Server 2000 Northwinds Trading Company sample database. The sample report referenced throughout this article pulls data from the Orders, Order Details, Customer and Products tables. The report is intended to be a representation of a typical yearly product order summary. It groups products by customer, and displays the yearly total number of each product that the customer ordered. The examples below use Crystal Reports 2008, but have also been tested with Crystal Reports XI.


View Entire Article

Article Feedback

Title:  
Name:  
Url: ( Optional )
Comment:  
Please add 4 and 4 and type the answer here:

User Comments

Title: crosstab report   
Name: HasnolHisham
Date: 12/11/2008 3:13:49 AM
Comment:
Dear Anitha,

There are 2 option to set your cross tab display (whether horizontal or vertical):

1)Righ click the Cross Tab table and find Pivot Cross Tab
2) Right click Cross Tab table>Summarized Field Label>Summarize Horizontally or Summarize Vertically.
Title: Here is a tough one   
Name: HasnolHisham
Date: 12/11/2008 3:08:40 AM
Comment:
Dear Sanjay,

Basically there is an option for the @personnelcost to be displayed as average. Go to Summarized Fields (Cross Tab Expert) and change summary (by default=sum) to average.

I dont think you can devide the personnelcost by the total orders which is another field.It can be done if you're using Group Expert but it's not work in Cross Tab. It's impossible unless the formula have been defined in formula field.
Title: Here is a tough one   
Name: Sanjay
Date: 11/26/2008 12:20:34 PM
Comment:
I am using a cross tab in Crystal 11 and already have a field insterted that I am taking the average of (in this case Personnel cost). I would like to take that average returned and devide it by the total orders which is another field in the cross tab but i can't seem to get the average of the average / cost. Any thoughts?
Title: Outstanding   
Name: Rajesh
Date: 11/4/2008 8:57:25 AM
Comment:
This article is very good and it helps me lot. I am new to Ccrystal report. I need some info @ tabular report.
Can i link column to subreport like link report.
Title: Very Informative   
Name: Sangamithra
Date: 11/3/2008 12:33:38 PM
Comment:
Hi,I am new to cross tab reports and this article was really helpful and easy to follow.
Title: crosstab report   
Name: anitha
Date: 10/30/2008 7:26:23 AM
Comment:
how to change the horizontal to vertical and vertical to horizontal directions in crystal reports
Title: Thanks for the information..Additional Question   
Name: John Heck
Date: 10/23/2008 10:00:57 PM
Comment:
I really enjoyed your article and was wondering if you could tell me what I am trying to do is possible and if so how. I am trying to create a cross tab report that uses Sales Reps, Company, and Employee down the left side and Sales Reps across the top with the intersection being a commission rate. What I am trying to do is show all the sales reps that share a commission with other sales reps for each employee for each company.

Regards,
John Heck
Title: Mr   
Name: Muhammad Yaseen Khan
Date: 8/24/2008 4:06:44 PM
Comment:
Sir i am very happy to see your tutorial. beleive me its very nice . i just started crystal reporting but after your tutorial i am feeling that i can easily make some other Cross tab reports because you explain very nicely. i am thankfull to you. and hope you will continue share your expirence in the form of such tutorial.
Thank you

With regards

Yaseen Khan
Title: Excellent Article for Beginners   
Name: Md. Mushtaque
Date: 8/17/2008 2:01:19 AM
Comment:
Sir,
I am glad to see such article on Cross-Tab Report. It is really excellent for Beginners. If you could suggest something on Text data to be displayed and calculated as number and again displayed as text in a particular format.
Such as if there is a field of Hours having data as 2:30,2:45,2:15. How to display these data and show the total hours as 7:30 where as I got the value as 7.50 Hours but as per the hours format it is not exactly correct and acceptable.
If you could suggest something on it, it will be really appreciated and this could solve lots of problems in Management of Time and Money.

Thanks again for your Article. Please put some articles on advanced and lively features.

Product Spotlight
Product Spotlight 
Learn More
.NET Tools
asp.net shopping cart
asp.net chart control



Community Advice: ASP | SQL | XML | Regular Expressions | Windows


©Copyright 1998-2009 ASPAlliance.com  |  Page Processed at 1/7/2009 8:32:33 PM  AspAlliance Recent Articles RSS Feed
About ASPAlliance | Newsgroups | Advertise | Authors | Email Lists | Feedback | Link To Us | Privacy | Search