I'm using Pentaho Report Designer (PRD) 3.8.
My data structure is like this
id| name |value |
1 | Jack | 200 |
2 | Will | 300 |
3 | Smith | 400 |
4 | Jack | 500 |
Now the problem is that I want to get sum
for column Value
with only selected rows
.
Is there any methods like
IF([name]='Jack' then sum([value]))
so value of sum is 700
.
I need the sum
value in formula
not in query
because some name values are dummy values too.