I have a report that displays the below data:
Bill | Status | Value
Food | Paid | 10
Gas | Overdue | 15
Electricity | Open | 20
Fun | Paid | 25
What I need is to display total by status which, in this example, would be 35 for paid bills, 15 to overdue bills and 20 to open bills (I don't know if open is the English term to a bill that is not overdued and not paid yet either).
This question is not duplicate with question How to sum all values in a column in Jaspersoft iReport Designer? because what I need is to sum bill values by its status field and not to sum all values regardless of the status field.
This question is not duplicate with question Grouping records in JasperReports either because I can't change report layout and group its data. What I need is to display totals by status which I'm already doing programatically in Java and passing these three kind of totals by report parameters.