Java – How to find sum of column in Ireport or jasper report

ireportjasper-reportsjavaprinting

I have column in detail band with value

$F{thScore}+$F{prScore}

I would like to find the sum of this column in run time . How is this possible in jasper report using Ireport.
I did it with variable but with no luck.

Best Answer

A variable is defined and

variable expression

to

$F{thScore}+$F{prScore}

and

calculation

to

sum

.It worked for me where $F{thScore},$F{prScore} are fields in detail band.