Viewing sources and dependencies

You cannot delete a variable if its definition refers to another variable as there is a dependency.

This happens when a variable is:

  • used in routing
  • used by a derived variable
  • inserted in the label of a variable
  • used in an analysis variable

You can view Sources and Dependencies by clicking SourceDependIcon.PNG .

  1. Click VariablesIcon.png to open the Variables window.
  2. Highlight the variable you wish to inspect and click SourceDependIcon.PNG .
  3. The Sources/Dependencies window opens, showing the selected variable together with any source variables (variables that it depends on) and any variables, reports or analyses that depend on it.

In the example below, the variable Q3a depends on Q3, as Q3a is only asked if the respondent answers Other to Q3. You cannot delete Q3 until the Not Asked condition in Q3a is removed.

Source and dependencies of the selected variable

In the Sources/Dependencies window you can

  • check the details of a dependent by selecting it and clicking VariablePropsIcon.png
  • display the sources/dependencies of a variable by selecting it and clicking SourceDependIcon.PNG or double-clicking the variable
  • move to the previous view in the Sources/Dependencies window by clicking UndoIcon.png
  • move forward by clicking RedoIcon.png
Contents