In addition to the variables that we get when we load a dataset, we can create new ones in Meta-Editor. This option provides both the creation of variables as logical combinations of existing ones and the creation of segments for numeric and date variables.
How to create a new variable
Open Meta-Editor using the ‘Project settings’ icon on DeX ('cog' icon);
Click on the ‘snowman’ icon on the left-top menu and choose ‘Create Logical variable’;
After the logical variable is created, click the ‘Edit’ icon;
Use logical operators AND & OR to make new combinations from present options and get a new variable;
New options can be created as date segments or numeric segments. A list of variables will appear in the window that opens. If you select a date/numeric variable, the same string as on DeX appears next to it. Here you can enter expressions to make segments according to all the rules of segmentation.