Urgent: How to put a check where the number of people chronically ill is less than the total number in roster

Dear All

How to put a check where the total number of members ill in a household specified should be less than or equal to the total member in the roster.

The question on total member chronically ill is at the household level and the the total number of members should be calculated from the roster

Thank you

The easiest is to refer to the trigger of the roster and ignore the roster itself.

For example, if C is numeric for chronically ill then

  • if the roster is triggered by numeric question N, then C<=N
  • if the roster is triggered by list question L, then C<=L.Length