jasperreport 6.10 crosstab remove null row group

0

 

in the figure, the right hand side is the query result, I want to show it in crosstab with sex as row and fyear as column, but the 2018 has no record and sex is NULL.

  1. how to hide the null row in crosstab (but need to keep the 2018 fyear column)?
  2. how to set the total sex so it can sum up the column value in crosstab?
tong123123's picture
Joined: May 4 2010 - 4:19am
Last seen: 5 months 1 week ago

I have tried with the same data and ended up unresolved  and further research indicated that we can't remove empty rows based on row groups dynamically at cross tab level. 

https://stackoverflow.com/questions/14221656/hide-null-row-groups-jasper...
https://community.jaspersoft.com/jasperreports-library/issues/4626

I think, the possibility is to modify the result set at SQL level. 

sadakar - 5 months 2 weeks ago

1 Answer:

0

>1.how to hide the null row in crosstab (but need to keep the 2018 fyear column)?
  --> I found this difficult. I would like to know too.


>2.how to set the total sex so it can sum up the column value in crosstab?
  -->Try setting the measure item Caluculation to 'count'.


I hope this is useful to you.

 

yama818's picture
442
Joined: Aug 17 2018 - 3:48pm
Last seen: 10 hours 31 min ago
Feedback
randomness