See Crunch Automation basics for more information.
The SET WEIGHT command allows you to set either one or more numeric variables as available weights for the dataset users.
The command also allows you to pick a specific numeric variable and set it AS DEFAULT for the dataset, which means the weighting will be applied, as a default, whenever a user views the dataset.
SET WEIGHT alias, ..., alias;
SET WEIGHT alias AS DEFAULT;
The following three examples describe how to set the weight for various use cases.
If you have created or uploaded/joined a single variable (my_weight), you can set it as follows:
SET WEIGHT my_weight;
The following example sets two numeric variables as weights using one command:
SET WEIGHT weight_segmentation, weight_demographics;
Finally, the following example sets a particular weight as the default:
SET WEIGHT my_weight AS DEFAULT;