In order to pass parameters into crosstab, first of all, we
need to create parameters related in main report. Below is the example:
After that, we need
to create another 2 parameters in crosstab (crosstab parameters). Below is the
example:
Please ensure that all of the parameters in the main report
and in crosstab section are using the same name and class. Below is the
example:
Nevertheless, if you are using Jaspersoft Studio Community
version, most of the time your IDE will have problem creating crosstab
parameters. Therefore, alternatively you can create crosstab parameters in XML
source and then assign crosstab parameters value with main report parameters value
using <parameterValueExpression> tag. Below is the example:
Finally, compile and then run your report.
That’s all.