iReport - Trying to count groups based on another group having at least one value of 1
===

I am trying to calculate a value for a report with the following information:

Subject Group has multiple Event Groups, each Event has a Field with a 1 or a 0 value.  I am trying to figure out how to count the number of Subject Groups that have at least one Event Group with a value of one.

I have tried splitting into multiple variables, but cannot seem to get the calculations nor resets right.  I can return a count of all events and a sum of all events that have a 1 value.

My data indicates 5 events with a value of 1, but I need to return the number of subjects which would be 4.  Any help would be greatly appreciated.