Creates a structural dimension which can be used in an unlimited number of cubes.  A Dimension, when used in Solver’s Dimensional Modeling feature, is a set of N elements over which a cube can iterate.  This function should appear in a single cell and not be included in a formula chain.   Analytic Solver  supports 8 total dimensions (parametric and structural combined).

To create a Structural Dimension, click ...

• Model – Dimension to open the Dimension menu.
• Model – Dimensional Modeling -- Dimension to open the Dimension menu.

If using an Excel Pivot Table, select From Pivot Table, otherwise select From Cell Range.  (For more information on creating a dimension from within an Excel Pivot Table, please see below.)

If From Cell Range is selected, the following dialog appears.

Name:  Enter an appropriate name of your choice.

Specify:  Select Range to enter a range of cells containing the elements of the dimensions. Alternatively, one could also enter an array of the form “{elem1, elem2, …. elem n}”.  The length of the dimension is equal to the number of cells in the range, or the length of the array.

If Bounds is selected, the value entered as Lower will become the first dimension element and the Upper value will become the last dimension element.  Dimension length will be calculated as Upper – Lower + 1.

Location:  Select a blank cell on the spreadsheet where the dimension will reside.

Type:  Select Structural to create a Structural Dimension.  (Please see below for information on creating Parametric Dimensions.)

## Function Signatures

Three signatures are provided for this function.

```=PsiDim(name, range_or_array)

=PsiDim(name, from_num, to_num)

=PsiDim(name, length)```

name:   A unique string value assigned to identify the dimension.

range_or_array:  Enter a range of cells containing the elements of the dimensions. Alternatively, one could also enter an array of the form “{elem1, elem2, …. elem n}”.  The length of the dimension is equal to the number of cells in the range, or the length of the array.

From_num is an integer value which will become the first dimensional element.

To_num is an integer value which will become the last dimensional element.  Dimension length will be calculated as to_num – from_num + 1.

The length argument is an integer value defining the number of elements in the dimension.  Elements will not be assigned names, rather each element will be assigned a value of 1, 2, 3, ….N.

## Examples

=PsiDim(“cities”, A1:A3) where A1 = NY, A2 = LA, and A3 = SF  - Results in a Structural dimension named “cities” containing three elements:  NY, LA, and SF.

=PsiDim(“cities”, {“NY”, “LA”, “SF”}) – Results in a Structural dimension named “cities” containing three elements:  NY, LA, and SF.

=PsiDim(“countdown”, 60, 0) – Results in a Structural dimension named “countdown” that contains 61 elements:  60, 59, 58, …, 2, 1, 0.

=PsiDim(“index”, 10) – Results in a Structural dimension named “index” with 10 elements:  1, 2, 3, …, 8, 9, 10.

After a Structural dimension is created, the name and address of the dimension will appear under Dimensions in the Solver Task Pane.