Creating and Designing Report using iReport - Part 2
page 3 of 4
by Anuva Das
Feedback
Average Rating: 
Views (Total / Last 10 Days): 15006/ 605

Crosstab

Sometimes we need to display a report in cross tabular format. Crosstab is nothing but a special type of table component in which both the rows and the columns are dynamic. They are used to summarize and visualize data in a compact form with multiple levels of grouping for both columns and rows.

Suppose you want to create a report that shows Revenues for computer sales of different years.

For that, first add the query in your report as shown below.

Figure 9

Now use the following steps to create a crosstab report.

Steps 1

Add crosstab from the menubar in the summary section. It will show the following dialog box. Select “Available Subdataset” or you can create a new Subdataset. Now click the next button.

Figure 10

Steps 2

It will show the following dialog box. Select row group 1 and row group 2 and click the next button in the following dialog box.

Figure 11

Steps 3

It will show the following dialog box. Select column group 1 and column group2 and click the next button in the following dialog box.

Figure 12

Steps 4

It will now show the following dialog box. Select detail field and function to show the result. Now click the next button.

Figure 14

Steps 5

It will show the following dialog box. You can make the “Add row group totals” and the “Add column group totals” check boxes checked to display the total of each row and each column respectively in your report.

Figure 15

Steps 6

Now click the “finish” button and run the report. It generates a report as shown below.

Figure 16

Crosstab must be placed in the summary section.


View Entire Article

Article Feedback

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

User Comments

Title: doubt in crossta with group   
Name: kalpana
Date: 7/1/2008 7:15:06 AM
Comment:
i am tring to create the Crosstab with group , i am not able to create the summation for the grouped columns . pl guide me to design the report using i-reports.
thanks in advance
Title: Cross tab report   
Name: Navin
Date: 6/16/2008 6:45:45 AM
Comment:
I generated the cross tab report as per the steps, but have got blank output and the number of pages is 6, but each page is displaying nothing
Title: Page Display   
Name: Brendan
Date: 6/9/2008 9:16:34 AM
Comment:
Mr. Dilip,

I've fixed the display of the article. Thank you for mentioning this.
Title: Mr   
Name: Dilip
Date: 6/9/2008 7:51:04 AM
Comment:
The figure 10 in this url is missing.
Please provide the same asap
Title: Student SE   
Name: Shirhan
Date: 5/28/2008 9:41:37 AM
Comment:
Thanx once again! this article was the one I was looking for
I needed to print a Character certificate and had a problem of how to run a couple of queries so this will give the answer.

Once again you saved the day..... :-)
Title: Reply to Sandeep   
Name: Anuva
Date: 8/11/2007 11:47:28 AM
Comment:
Thanks.Still i'm not deciding.
Title: Nice work   
Name: Abhishek Kumar Singh
Date: 8/11/2007 6:54:01 AM
Comment:
Nice one.
Title: Hello   
Name: Sandeep Acharya
Date: 8/10/2007 9:49:28 AM
Comment:
Hello,
Nice to see the part 2. How many parts are yet to come??? Carry on.... I am counting the $s. Dont worry !!!

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






Ads Powered by Lake Quincy Media
Community Advice: ASP | SQL | XML | Regular Expressions | Windows


©Copyright 1998-2008 ASPAlliance.com  |  Page Processed at 8/29/2008 9:28:30 PM  AspAlliance Recent Articles RSS Feed
About ASPAlliance | Newsgroups | Advertise | Authors | Email Lists | Feedback | Link To Us | Privacy | Search