Desktop User Guides > Professional > Data management scripting > Creating new variables > Example 5: Creating banner variables
 
Example 5: Creating banner variables
During analysis, you might want to create some crosstabulations using the same variables on the top of the table. This is sometimes called the banner or breakdown and is typically a combination of demographic variables. You can use the DMS file to create a derived variable to use as the banner in your analysis. For example, the following creates a dynamically derived variable called AgeGender from the Gender and Age variables for use as a banner during analysis.
Metadata(ENU, Question, Label, myInputDataSource)
AgeGender "Age and gender banner variable"
categorical
expression ("gender + age");
End Metadata
Like the total awareness example in Example 4: Creating “Total Awareness” variables, the derived variable is defined using a single expression that uses the union (+) operator to combine the two categorical variables. No categories are specified. This means that the categories will be generated automatically based on the categories in the variables in the expression.
This example is in the NewVariables.dms sample DMS file: For more information, see Sample DMS files.
Requirements
UNICOM Intelligence Professional
See
Creating new variables