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