Project variables allow you to centrally define values for a project and use these values when working in a model or overwriting them in the workspace.
While some variables have predefined values (e.g. project horizon level, project horizon start) that can only be changed via the project settings, users are also able to create variables with custom values.
These values can be numerical or non-numerical.
AVAILABLE SINCE 4.8.0
User are able to create variables with custom values which can be used in modelling a project or in scenarios.
This can be done in the project settings under Variables > Configure variables.
There are some naming restrictions when creating a variable. The first letter has to be a letter. The rest of the name can be numbers, letters (uppercase and lowercase) underscores or a dash.
Using variables in node operations
When composing node operations in the model editor, you can use project variables as a placeholder for a value. This allows you to change the value at one central place instead of going back to all your nodes and edit the operations to reflect the new value.
For example, consider you want this operation in your node:
and the year 2020 is the start of your Project Horizon Period, as set in the Project Settings.
Instead of entering the hard value "2020", you can type the dollar character ($) to choose a variable based on a list of available variables.
When using a project variable in a node operation, make sure to use the $ character before the variable name.
The corresponding variable value is displayed next to the variable name. In this example, you know that it will be understood as "2020" when the node output is being calculated.
From this point on, whenever you change your projects horizon start, everywhere in your node operations where you use the "$PROJECT_HORIZON_START" variable, it will automatically read the newly updated value.
Overwriting scenario variables
AVAILABLE SINCE 4.8.0
While users are able to create new variables, it is also possible to change the general settings and overwrite the values of existing variables.
These adjustments can be done directly in the scenario manager.
A "Manage scenario" window opens where you can change settings of the variable (name, description, based on, color) as well as the values of scenario variables.
Overwriting values enables a faster and easier simulation of different scenarios as key values can be changed quickly.
The number of changed variables is displayed in the scenario manager for each scenario respectively.
Sharing scenarios with overwritten variables is not supported. It is possible to share the scenario, but the overwritten values will not be transferred. Manually transferring and changing the variables in the new scenario is possible.
Available system values as variables
The following system values are available as variables. The system defined variables (marked in blue) will not be shown in the variable overview page. They can be configured in the project settings.
The projects "horizon period" from the time settings.
The start value from the projects time horizon.
The end value from the projects time horizon.
The current period of your project.
The custom variable has no predefined value as this can be set by the user individually.
Frequently asked questions can be found here.
You may contact the Valsight Customer Support via:
+49 30 46799042
Availability: Mon-Fri *, 9 AM to 5 PM (Berlin, Germany) .
*Except Public holidays in Berlin, Germany.