emrizwan Posted February 19, 2015 Share Posted February 19, 2015 Hi,I want to create a cross tab report with multiple row columns as belowStudent DetailsMonthStudent idStudent NameclassJanFebMarch1abcclass 12525252xyzclass22500the 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 More sharing options...
vitaace Posted February 25, 2015 Share Posted February 25, 2015 Hi, maybe you can do like below. Just suggestion as i'm also new on this1. Suppose your query should return data as belowstudent_idstudent_nameclassmonthfees1abcclass 1Jan251abcclass 1Feb251abcclass 1March252xyzclass 2Jan252xyzclass 2Feb02xyzclass 2March02. In report wizard, select all fields on Fields page, then select student_id, month and fees on Group page and finish the wizard3. 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 JanFebMarchTotal1abcclass 1252525752xyzclass 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 More sharing options...
emrizwan Posted March 4, 2015 Author Share Posted March 4, 2015 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now