Jump to content

Multiple Group Headers On Same Line


Recommended Posts

I am creating a Jasper report programmatically using Java code.  Everything is working well, except I would like to change how multiple group headers are displayed.  I have three groups to summarize financial data:  Year, Month, and Category.  Currently these are displayed in the report on separate lines like this:




I would like these group headers to appear on the same line, like this:

Year  Month  Category

Is there any way to do this?

Link to comment
Share on other sites

  • 2 weeks later...
  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

 Try for Grouping option in report but you need to create a field like concat(year,month,category) and use this field to create single group.

Or you can do this by Hiding all the groups band and use only Category Band to display all three Fields

Change Evalution Time as per group Created .

I have given 2 solution use which 1 you like . Let me know. 

Link to comment
Share on other sites

Thanks.  Unfortunately that won't work for me as I want to get the subtotals for each level of grouping.  I tried putting all the groups in the same band, but oddly then I got output that looks like this:

Year  Month  Category 1

Year  Month Category 1

                     Category 2


I don't know why Jasper is inserting an extra line with the groups on it.

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...