Jump to content
Changes to the Jaspersoft community edition download ×

Sum of conditional expressions

2005 IR Help

Recommended Posts

By: Andrea Bacchetta - andreabacco

Sum of conditional expressions

2004-04-27 15:57

am using printWhenExpression to selectively display values, which result from different calculations, for the same column in the detail section of a report.


It works fine, except now in the summary I need to display the total sum for all the values displayed in this column.


I fear this is not possible with printWhenExpression, unless there is a way of adding up each time only the values that satisfied


the printWhenExpression clause.


I have never seen examples of using only one variable with complex logic (i.e. conditionals using IF statements) in variableExpression, is it possible?


TIA, and compliments for the tool, it's great








By: Chuck Deal - cdeal

RE: Sum of conditional expressions

2004-04-28 05:41

You could always use a Scriptlet to handle this more advanced logic.


There is a Scriptlet example included with the distribution.

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...