Table Variables
Table variables are a special type of variable that represent a table. To define a table variable, go to the variables tab and change the type of a variable to table.

Once you do so, the initial value input will change to allow you to import a table. Click on New and follow the instructions. Certain values, such as durations, cannot be stored in a table variable.




Once you have finished importing a table, you are ready to get started using them in your expressions. To use them, go to any expression box and use the following syntax: Variable[Row, Column]. If you then run a simulation, the expression will use the value in your data.

Lastly, after you run a simulation, you can view the table that is stored in a variable by going to the model tab of the results and clicking on the icon under the variable name.

Assignments
In addition to simply using table variables, you can also assign new values to them. To do so, create an assignment as normal, but select your table variable. When you do so, two new input fields will appear: Row and Column. These allow you to specify what row and column will be assigned to when this assignment occurs.


If you go back to the assignments page, you can get a preview of the assignment, using the same syntax as when you use a table variable.

When you assign to a table variable, you must assign to an existing column, but not necessarily to an existing row. If you try to assign to a column that does not exist on your data, you will get an error that stops the current simulation. If you assign to a row that does not exist, a new row will be created.