Jump to content
We've recently updated our Privacy Statement, available here ×

making sum of percent column


s9202

Recommended Posts

I have made table with one column of numbers and another of percent values.

Percent values are made by textFields with expresions like this: <textFieldExpression><![CDATA[new Double( ($F{number}.doubleValue() / $V{totalNumber}.doubleValue())*100 )]]></textFieldExpression>

In column footers i want to have totals. For number is ok, but i have no idea how to make it for percent values, because they are only a textFields.

Number || Percent

4     ||     40%

3     ||     30%

3     ||     30%

==Totals===

10     ||  100% <-- problem

Link to comment
Share on other sites

  • Replies 4
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

As you see this value is Double (look in my expression).

My problem is that I know how to sum Fields from datasource like my "Number" column, but I don't know how to sum simple textFields which counts % values for me in "Percent" column.

Link to comment
Share on other sites

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...