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

ahullinger

Members
  • Posts

    1
  • Joined

  • Last visited

 Content Type 

Profiles

Forum

Events

Featured Visualizations

Knowledge Base

Documentation (PDF Downloads)

Blog

Documentation (Test Area)

Documentation

Dr. Jaspersoft Webinar Series

Security Advisories

Downloads

Posts posted by ahullinger

  1. I have the Definitive Guide to iReports and I followed those instructions on counting the occurences of a group, but the counts are incorrect once the report is filled.  Numbers show up, but they are counting something other than the counties.

    Here's the situation.  I created 2 Report Groups: State and County.  I want to count the number of Counties for each State.  I created a new Variable with Variable Class Type as java.lang.Integer and the Calculation type as Count. 

    My Variable Expression is as follows:  ( $V{County_COUNT} != null && $V{County_COUNT}.intValue() == 1 ) ? "" : null

    The Initial Value Expression is:   new Integer(0)

    The Eval. time is "Group" and the Eval. Group is "County".

    Is there something that I'm overlooking or is there another way of solving this? 

     

×
×
  • Create New...