Skip to content

Create and update wizard

The Create and Update wizard combines the action of the Initialise and Assign Values wizards to create Selector and Flag Array virtual variables.

The wizard takes you through the steps to create a number of codes which can then have selections assigned to them. The virtual variable that is generated can then be used just like any other variable.

On the Wizard tab click on the Create and Update link to start the wizard.

Table

The first step of the wizard is to select the table that the variable will be created on. Drag the table you want to use from the System Tables section of the System Explorer.

The table that the variable is created on determines what information it can hold. For example, if you have a Households table and a Person table then creating a new virtual variable on the Households table will mean the variable can only hold one value per household. However if the variable is created on the Person table then it can hold one value per person and there could be multiple values per household (as a household could contain multiple people).

Type

Choose the type of virtual variable to create.

Selector

Selector

A selector variable will hold one value for each record on the table that the variable is created on. That value has to be only one from a certain list of categories. An example of a Selector variable might be postal district, where each household has one and only one postal district.

Flag Array

A Flag Array variable is similar to a Selector variable in that it can hold values chosen from a set of categories. However, unlike a Selector variable, a Flag Array can hold 0, 1 or more values for each record. An example of a Flag Array variable might be what newspapers someone reads. So a person may not read any newspapers, read just The Times or perhaps The Times, The Sun and The Telegraph.

Select Selector or Array to go to Properties.

Properties

On this step the number of categories to define for the variable has to be specified as well as whether the variable should be treated as sequenced or not.

The number of categories defines the number of possible values that the variable can take. The sequence defines if the variable can be ordered or not. These defining a Selector or Flag Array variable.

For Selector Variables

The value of the variable for any given record can only be one of these categories. The first category has a special meaning as "unclassified". When changing the values of this variable any records that don't fall into any of the other categories will be set to the "unclassified" category. Therefore, an unclassified code will be added for you, so you will have the number of categories you have indicated, plus an unclassified category.

A Selector variable can also be defined to have a sequence. Some variables are definitely unsequenced, such as a person's job title. There is no sensible way of defining whether "HR Manager" comes before or after "Sales Manager", they are simply names of categories. Therefore the variable should be defined with a sequence type of "Nominal".

However, some variables can be considered sequenced. For example, you may have a variable for a person's income band. This might contain categories such as <10k, 10-20k, 20-30k, etc. In this case you definitely can say that <10k is less than 10-20k and so this income band variable can be considered as sequenced. Depending on what order the selector's categories are going to be defined in you can set the sequence type to be "Ascending" or "Descending". For example, if the above income band variable will be defined with the following categories:

Unclassified

  • <10k
  • 10 - 20k
  • 20 - 30k
  • 30 - 40k
  • 40 - 50k
  • 50 - 60k
  • 60 - 70k
  • 70 - 80k
  • 80 - 90k
  • 90 - 100k
  • >100k

Then the sequence type would be "Ascending".

For Flag Array Variables

The value of the variable for any given record can be 0 or more of the defined categories. No unclassified category is used in a flag array variable.

Also, for Flag Array variables, the sequence type will always be "Nominal".

Descriptions

The number of codes specified on the last step are now being displayed.

Edit the codes if required and give them an appropriate description.

Selections

You can now assign a selection to each of the descriptions set in the last step..

Drag your selection on to the box next to the appropriate description it relates to. Alternatively you can right click on the box and browse to the selection desired.

Folder

Choose the folder that the new variable should be created in.

Create (if necessary) and highlight the folder to hold your Virtual Variable.

Add notes

You can choose to add notes to your variable. These can be viewed later by right-clicking on the variable once it is in the System explorer window.

Enter any notes you wish to record.

Name

This step of the wizard allows you to define what the Virtual Variable will be called.

Enter the name of your variable in the Description box.

To overwrite an existing virtual variable drag it on to the Drop the variable to overwrite here drop box.

Tick the Create URN Snapshot box to record the exact records found at this time so it can be recreated after a refresh of the data if needed.

Tick the Modify Security Attributes box to allow you access to Security (This option is only available on the Enterprise Version)

Security

This is an optional step available on the Enterprise version of the software.

Use the tick boxes to set the security setting you wish to apply to this variable.

Finish

This step is shown after the actions required by this wizard have been completed. The new variable has been created and highlighted in the System explorer window.

Tick the Show new variable as a selection box if you want to view the variable when the wizard is closed.

Click Finish to close the wizard.