totalof[Qx]
Count
Returns the count of filled (non-empty) entries in a list-numeric or numeric-total question. Differs from sumof[] which adds the values — totalof[] counts the entries.
Parameters
| Parameter | Type | Description |
|---|---|---|
Qx |
Question ref | A *NUMBER list or *NUMLISTTOTAL question |
Returns: Integer — count of non-empty numeric entries
Examples
expressions
totalof[Q13]=5 -- exactly 5 numeric entries were filled totalof[Q17]=100 -- all 100 allocation points assigned
Use totalof[] to count how many rows were filled, and sumof[] to add up their values.