Is there a variable nesting depth limit in iReport, Jaspersoft Studio etc.? I have text field with the following content.: ( $F{tckopf_R_ART}.equals( "1" ) && $V{euroFollowOnCommission} != null )? $V{charterEuroWorth} + $V{euroFollowOnCommission}: ( $F{tckopf_R_ART}.equals( "2" ) && $V{euroFollowOnCommission} != null )? $V{charterEuroWorth} + $V{euroFollowOnCommission}: ( $F{tckopf_R_ART}.equals( "1" ) && $V{euroFollowOnCommission} == null )? $V{charterEuroWorth}: ( $F{tckopf_R_ART}.equals( "2" ) && $V{euroFollowOnCommission} == null )? $V{charterEuroWorth}: null[/code]where are "charterEuroWorth" and "euroFollowOnCommission" variables are sum calculazions from 2 different subperiods. If I put above code to a new variable in the main report, I get "null" in the text field on the main report. I need to put it in variable in the main report, because also need to calculate the sum value from the above code for every record in the main report. I don't know how, I can achieve it. Maybe there is a problem with the variable properties? Please let me know, if you need further information. How can I calculate the sum value from the above code for every record in the main report?