mrzaxy Posted March 31, 2011 Share Posted March 31, 2011 hello guys,I'm using iRep 4.0.0 and I have a simple report with one group. I have values on group (VALUE column) and I want to calculated field ( % column) on proup level but I need values from the summary (100) for this.Like this:NAME VALUE %Description1 25 25Description2 25 25Description3 50 50 Total 100 Is it possible to create? help me!thank you! Link to comment Share on other sites More sharing options...
kolaitis Posted April 5, 2011 Share Posted April 5, 2011 try this....Assign variable TOTAL_VALUE with appropriate expressionAssign variable VALUE -""- -""- -""- Reset Type: Group (your GroupName). Drag variable VALUE on (your GroupName) eval.Time : Group, eval.Group : your GroupNameCreate text field on (your GroupName) with expression : new Double(($V{VALUE}.doubleValue() / $V{TOTAL_VALUE}.doubleValue())*100)eval.Time : Auto.I hope it will works. Link to comment Share on other sites More sharing options...
mcclellc Posted April 27, 2011 Share Posted April 27, 2011 Thanks - you saved me LOTS of frustration since the standard documentation doesn't get into these very common types of calculated fields. (I am getting the difference between two summary values and modifying your syntax above worked immediately.) Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now