Skip to content

::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.

Creating a dimension and its elements from a sheet definition

Lay out the definition ​

  1. Enter ::dimension in column A and the dimension name in column B of the header row.
  2. Add any options below the header, with the option in column A and the value in column B.
  3. Add one row per element. Use either of these layouts for the hierarchy.
LayoutHow to enter elements
Explicit parentsEnter the element in column A and its parent in column B. Leave column B blank for root elements.
IndentationLeave 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 — S for string, A for alias, or N for numeric. A name by itself creates a string attribute.
  • Locale — Optional element from }Cultures. For example, enter Caption:A:fr for a French alias.

Dimension definition with alias, numeric, and string attributes

Options ​

OptionWhat it controls
-hierarchyAlternative hierarchy. Omit it to use the default hierarchy.
-recreateDelete and rebuild the hierarchy’s elements. Leave column B blank to enable it.
-componentSortOrder children by ByInput (default) or ByName.
-componentOrderSort children Ascending (default) or Descending.
-elementSortSort elements ByHierarchy (default), ByInput, ByName, or ByLevel.
-elementOrderSort elements Ascending (default) or Descending.
-captionSet the dimension caption. Use -caption:locale for a locale in }Cultures.
-subset.aliasAlias to use for the Default and system subsets.
-subset.expandaboveTurn on expansion above the parent for the Default and system subsets. Set to false to turn it off.
-subset.dynamicKeep the Default and system subsets dynamic. Set to false for static subsets.
-subset.defaultExpression for Default. Defaults to $ALL.
-subset.allExpression for ALL. Defaults to $ALL.
-subset.leavesExpression for LEAVES. Defaults to $LEAVES.
-subset.rootsAdd 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 AColumn BColumn C
::dimensionPeriodCaption:A
-caption:enReporting Period
FY2026:CFiscal Year 2026
2026 JanFY2026January 2026
2026 FebFY2026February 2026

Period definition with localized captions and year and month rows

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.

Fiscal Quarter hierarchy definition for the Period dimension

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.