Hi, I recommend you pass those values as a param to the report, so you must calculate BEFORE calling the report, let´s say you have a list of items, iterate over the list make the sum, and store it in a variable, then add it as a param, "amount", this variable must be added to the report. BigDecimal total = BigDecimal.ZERO; for( Item i : items){ total = total.add( i.amount); } Map<String, Object> param : new HashMap<>(); param.put("amount", total); final JasperPrint print = JasperFillManager.fillReport(report, param, source); // Export the report to a PDF file. JasperExportManager.exportReportToPdfStream(print, out);