Skip to content

Modeling ​

Use Google Sheets to draft and review changes to your IBM Planning Analytics model. A sheet can hold related definitions, such as a dimension, a cube that uses it, and a view for reviewing the new cube. When the definitions are ready, run them from the TeamOne sidebar to apply them to the selected connection.

Modeling actions are available to TM1 administrators.

Definitions ​

Each definition starts with a ::type header in column A. Most definitions take an object name in column B on that row, followed by options and parameters on the rows below. The individual guides show the layout for each definition.

DefinitionWhat it does
::cubeCreate a cube or update its caption.
::viewDefine a cube view and the subsets on its axes.
::ruleReplace the calculations and feeders for a cube.
::dimensionDefine a dimension, its hierarchies, elements, and attributes.
::subsetSave a selection of elements as a static or dynamic subset.
::element.renameChange element names while retaining their data.
Security definitionsSet privileges for cubes, dimensions, hierarchies, elements, application entries, or processes.
TI codeAdd TurboIntegrator prolog and epilog statements.

Use set expressions where a definition calls for a selection of elements, objects, or groups.

Add code ​

  1. Open the Content tab and choose Add code from its menu.
  2. Select the template for the type of definition you need. Fill in the fields, then click Add to active sheet.
  3. Edit the definition in the sheet and review any options that can replace existing objects or clear security.

For existing objects, check the context menus on the Model tab. Depending on the item, you can generate a cube, view, dimension, hierarchy, or security definition directly on the active sheet.

Comments ​

Use # at the start of column A to skip one row. Put #[ on its own row to start a comment block and #] on another row to end it. To stop reading the sheet at a particular row, put :: by itself in column A.

One-line and multi-line comments in a modeling sheet

See the comments example spreadsheet.

Format code ​

Choose Format code from the Content tab menu to highlight definition headers, options, and comments. TeamOne also groups the rows in each block so you can collapse a definition while you work on another one.

Run code ​

  1. Select the intended Planning Analytics connection in the sidebar and open the tab that contains your definitions.
  2. Review the full tab. Run code reads the definitions on the active sheet, including blocks outside the selected cell or range.
  3. In the Content tab menu, choose Run code. Check the TeamOne log for the result and verify the affected objects on the Model tab.