Professional > Table scripting > Table specification syntax > Special elements > Restricting a base using an expression
 
Restricting a base using an expression
Sample Script File: SpecialElements.mrs
This example script is based on the Museum sample data set. See Running the sample table scripts for information on running the example scripts.
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.
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