dman Posted April 7, 2009 Share Posted April 7, 2009 Hi all, I use three groups based on the fields created from the sql query: “IPGroup”, “CategoryGroup”, and “SeverityGroup”. Further I defined a variable “count_severity_filtered” (Class: Integer, Calculation: Sum, ResetType: Group, Reset group: SeverityGroup, Variable Expr.: “new Integer(($P{REPORT_SCRIPTLET}.matchesTimeFilter($P{timefilter}, $F{TIME})) ? 1 : 0”, Initial Value Expression: “new Integer(0)”). This variable is different from the automatically generated variable “SeverityGroup_COUNT”. I defined it because I have to filter the occurrence of severities depending on a specified timefilter. The scriptlet method works perfect, I checked both variables in separate textfields. In the summary band I use the variable “count_severity_filtered” as a measure for my crosstab.The crosstab is defined as follows:- Row groups: ip ($F{IP}), category ($F{CATEGORY})- Column groups: severity ($F{SEVERITY})- Measures: count_severityMeasure (Class: Integer, Value Expr.: “$V{count_severity_filtered}”, Calculation: Count) The problem is: it seems that the crosstab measure calculation isn’t based on my variable “count_severity_filtered” but rather on “SeverityGroup_COUNT”. Any ideas why this happens? Thanks in advance for any hints,DM Link to comment Share on other sites More sharing options...
Giulio Toffoli Posted April 7, 2009 Share Posted April 7, 2009 You shold use the calculation SUM for your variable, not COUNT.Giulio 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