Variable Specification (SPCHART command)

If data are organized as shown in Table 1, the variable specification on C and U subcommands is
VAR BY VAR
The variable that is specified before keyword BY contains the number of defects in each unit (for example, COUNT in Table 1). The variable must be numeric. The variable that is specified after keyword BY is the subgroup identifier (for example, SUBGROUP in Table 1). This variable can be any type of variable. The chart is sorted by values of the subgroup identifier.
If data are organized as shown in Table 2, the variable specification on C and U subcommands is
COUNT(VAR) N({VAR}) [BY VAR]
             {VAL}

The specification is the same as the specification for p and np charts.