I already tried to count cases of certain categories to which strings belong (see SQL-counting the occurrence of certain categories belonging to strings )
But now I'm wondering, can, without doing sql things, jasper reports capable of all this? do summaries on my own without providing additional work to the database server (what actually happens to me)?
For example, this could be a report that I have:
name | color | flavor -------------------------- n1 | green | lemon n2 | blue | strawberry n3 | red | lemon n4 | green | lemon n5 | green | mango n6 | red | chocolate n7 | white | lemon n8 | blue | mango n9 | green | chocolate
And this will be the summary that I would like to receive:
colors | occurrences flavor | occurences -------------------- ---------------------- green | 4 lemon | 4 blue | 2 strawberry| 1 red | 6 mango | 2 white | 1 chocolate | 2
source share