alfie1109 Posted July 31, 2018 Share Posted July 31, 2018 Hi All-I am having trouble getting the Total of 'Rpt %' column. The calcuation for 'Rpt %' column is based on two different variables and calculation is done directly on the TextField Expression. Here are the setup/calculation for both Net and Rpt % columns.Net (for each row)Name: SalesQty_TotalVariable Class: java.lang.floatCalculation: SUMReset Type: GroupReset Group: ID GroupIncrement Type: NoneIncrement Group: blankVariable Expression: Float.parseFloat($F{SalesQty}) - Float.parseFloat($F{VoidsQty}) - Float.parseFloat($F{RefundsQty})Net Totals:Name: SalesQty_TotalGrpVariable Class: java.lang.floatCalculation: SUMReset Type: GroupReset Group: Cat GroupIncrement Type: NoneIncrement Group: blankVariable Expression: Float.parseFloat($F{SalesQty}) - Float.parseFloat($F{VoidsQty}) - Float.parseFloat($F{RefundsQty})Rpt % (for each row)Calculation is directly on the "Text Field Expression"($V{SalesQty_Total}/$V{SalesQty_TotalAll}) * 100(SalesQty_Total / SalesQty_TotalAll) * 100(3 / 271 ) * 100 = 1.11(12 / 271) * 100 = 4.43(21 / 271) * 100 = 7.75(235 / 271) * 100 = 86.75NameNetRpt %Pepsi31.11Dr Pepper124.43Iced Tea217.75Coke23586.75Totals:271[Need Total]So my question is:1. How do I get the Total of "Rpt %" column?I can't seem to get the correct calculation and I have tried different setup. Any help/suggestion is very much appreciated. Thanks!~a Link to comment Share on other sites More sharing options...
alfie1109 Posted August 2, 2018 Author Share Posted August 2, 2018 Created multiple variables to get Highest Totals and then applied the calculation directly to the text field. {Group Highest Total / Report Overall Highest Total} * 100 = [%Rpt] 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