Server User Guides > Survey Tabulation > Table specification syntax > Special elements > Restricting a base using an expression
 
Restricting a base using an expression
This example uses an expression to add a restriction to the base element so that it includes responses only where the respondent is male.
base('gender={Male}')
Table showing base element restricted to include only responses where respondent is male
This example is based on the Museum sample data set.
Here is a table that has this axis on the side:
This graphic is described in the surrounding text.
To exclude categories in a categorical variable from the calculation of the base, you can also use the IncludeInBase element property. For more information, see Excluding categories from the base.
See also
Special elements