"Multiple Analysis Variables Associated with a Single Table Cell"

Just as you often construct tables with more than one statistic, you might also want to construct tables with more than one analysis variable. You might want to show means for both age and income or for the sums of both the number of employees and the annual sales.
But when you start using multiple analysis variables, you will occasionally run into the "ERROR: There are multiple analysis variables associated with a single table cell in the following nesting: _____________" message. This problem is very similar to the "multiple statistics" errors shown in the previous example. The following code shows how this problem occurs. It produces the error message that is shown here: ...

Get PROC TABULATE by Example, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.