Jump to content
We've recently updated our Privacy Statement, available here ×

crosstab report with multiple 'row' columns


emrizwan

Recommended Posts

Hi,

I want to create a cross tab report with multiple row columns as below

Student DetailsMonth
Student idStudent NameclassJanFebMarch
1abcclass 1252525
2xyzclass22500

the report is to get details of student fees which have been received every month. real report will have details of all 12 months.

I can create simple report with Student Id, Month and Amount columns but I also want other details such as student name, Class Name etc.

any ideas?

thanks

Link to comment
Share on other sites

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Hi, maybe you can do like below. Just suggestion as i'm also new on this

1. Suppose your query should return data as below

student_idstudent_nameclassmonthfees
1abcclass 1Jan25
1abcclass 1Feb25
1abcclass 1March25
2xyzclass 2Jan25
2xyzclass 2Feb0
2xyzclass 2March0

2. In report wizard, select all fields on Fields page, then select student_id, month and fees on Group page and finish the wizard

3. Then you start creating Crosstab. Choose month for Columns. Choose student_id, student_name and class for Rows (set None for Total Position for all fields). Lastly choose fees for Measures (set Sum for calculation). 

4. Adjust the crosstab if need and you should have something like below

   JanFebMarchTotal
1abcclass 125252575
2xyzclass 2250025

 

5.  For Student Details, Student Id, Student Name, Student Class and Month column you can add static text to the report. Not sure if can add it dynamically, maybe someone here can advice.

 

Thanks ;)

 

 

Link to comment
Share on other sites

Hi Vitaace,

you have mentioned to add student_id, student_name and class in the Row Group

"Choose student_id, student_name and class for Rows (set None for Total Position for all fields)."

I am using ireport version  - "Product Version: Jaspersoft iReport Designer 4.0." which only allows to choose 1 column (as shown) in the Row Group

 

 

is there any other version of ireports which allows to add more than one columns in a Row Group?

 

thanks

 

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...