Jump to content

Sum Problem - Getting wrong result


ilovebbq

Recommended Posts

------------------------------------------------------------------------------------------

|                                               Blah Blah Blah                                            |

|                                                                                                                      |             <-- Page 1

|              total                |       10       |       20       |       30       |         60       |

------------------------------------------------------------------------------------------

------------------------------------------------------------------------------------------

|                                               Blah Blah Blah                                            |

|                                                                                                                      |             <-- Page 2

|              total                |       10       |       20       |       30       |         60       |

------------------------------------------------------------------------------------------

------------------------------------------------------------------------------------------

|                                               Blah Blah Blah                                            |

|                                                                                                                      |             <-- Page 3

|              total                |   $v{123}   |      10        |       70       |         90       |             <-- footer 1

|              Overall total  |   $v{abc}   |       30       |      100      |       150       |             <-- footer 2

------------------------------------------------------------------------------------------

Hi My question here is how can i sum up  the "Overall total" by getting the value from "total"?

For example a  variable $v{abc} for Overall total is  created  and it properties I set to:

Variable Class: java.math.BigDecimal

Calculation         : Sum

Reset type          : Report

Reset group       : -

increment type   : None

increment group:-

......

Variable Expression: $v{123}

===================================================

The output result for Overall total is wrong so anyway for me to fix it?

thanks for help.

 

Link to comment
Share on other sites

  • Replies 1
  • 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...