jawwadfarooq1 Posted March 1, 2011 Share Posted March 1, 2011 Hi All, I want to have a total count of the group in a variable. It is possible to display that as a Text Field and making its evaluation type to 'Report', but I dont know how to have that in a variable or use that in calculations. Kindly reply, Jawwad Link to comment Share on other sites More sharing options...
mvw Posted March 3, 2011 Share Posted March 3, 2011 Define a variable for count the first record of the group. Two options: 1) Count value only for first record of the groupName: G2_NUMBERVariable Class: java.lang.IntegerCalculation: CountReset type: ReportIncrement type: NoneVariable Expression: ($V{G2_COUNT} != null && $V{G2_COUNT} == 1) ? "" : null 2) Count value once time by groupName: G2_NUMBERVariable Class: java.lang.Integercalculation: CountReset type: ReportIncrement type: GroupIncrement group: G2Variable Expression: $F{<field_name_not_null>} Link to comment Share on other sites More sharing options...
mvw Posted March 3, 2011 Share Posted March 3, 2011 I'm using Groovy for expressions. Good Luck! 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