::dimension
Use ::dimension to build or maintain a TM1 dimension in Google Sheets. For example, lay out a period hierarchy, add display names and sort attributes, then apply the definition from the TeamOne sidebar.

Lay out the definition
- Enter
::dimensionin column A and the dimension name in column B of the header row. - Add any options below the header, with the option in column A and the value in column B.
- Add one row per element. Use either of these layouts for the hierarchy.
| Layout | How to enter elements |
|---|---|
| Explicit parents | Enter the element in column A and its parent in column B. Leave column B blank for root elements. |
| Indentation | Leave column B empty on every element row. Indent child names in column A by one additional leading space per level. Use Increase indent or Decrease indent on the Content tab. |
Numeric elements are the default. Add :S for a string element, :C for a consolidation, or a weight such as :-1 to subtract a child from its parent.
Add element attributes
Starting in column C of the definition header, use AttributeName:Type:Locale. Fill the values under each attribute on the element rows.
- Type —
Sfor string,Afor alias, orNfor numeric. A name by itself creates a string attribute. - Locale — Optional element from
}Cultures. For example, enterCaption:A:frfor a French alias.

Options
| Option | What it controls |
|---|---|
-hierarchy | Alternative hierarchy. Omit it to use the default hierarchy. |
-recreate | Delete and rebuild the hierarchy’s elements. Leave column B blank to enable it. |
-componentSort | Order children by ByInput (default) or ByName. |
-componentOrder | Sort children Ascending (default) or Descending. |
-elementSort | Sort elements ByHierarchy (default), ByInput, ByName, or ByLevel. |
-elementOrder | Sort elements Ascending (default) or Descending. |
-caption | Set the dimension caption. Use -caption:locale for a locale in }Cultures. |
-subset.alias | Alias to use for the Default and system subsets. |
-subset.expandabove | Turn on expansion above the parent for the Default and system subsets. Set to false to turn it off. |
-subset.dynamic | Keep the Default and system subsets dynamic. Set to false for static subsets. |
-subset.default | Expression for Default. Defaults to $ALL. |
-subset.all | Expression for ALL. Defaults to $ALL. |
-subset.leaves | Expression for LEAVES. Defaults to $LEAVES. |
-subset.roots | Add or update ROOTS. Leave the option value blank to use $ROOTS. |
The subset options use set expressions. Running the definition updates Default, ALL, and LEAVES. To also update ROOTS, include -subset.roots.
Recreating elements can delete data
-recreate removes existing elements in the selected hierarchy before rebuilding them and also removes attributes from the default hierarchy. Review the effect on cube data and attributes before running the definition.
Example
This definition creates a Period hierarchy with Jan and Feb under FY2026 and assigns display names. The :C suffix makes FY2026 a consolidation.
| Column A | Column B | Column C |
|---|---|---|
::dimension | Period | Caption:A |
-caption:en | Reporting Period | |
FY2026:C | Fiscal Year 2026 | |
2026 Jan | FY2026 | January 2026 |
2026 Feb | FY2026 | February 2026 |

See the dimension example spreadsheet.
Alternative hierarchy
Set -hierarchy to a name such as Fiscal Quarter to organize the same dimension in another way. Keep the dimension name in column B of the header.

On the Model tab, use the menu on an existing dimension or hierarchy to generate its definition. See the alternative hierarchy example spreadsheet.
Use ::element.rename for name changes and element security to assign access to members.
