Skip to content

::rule ​

Use ::rule to maintain a TM1 cube’s calculations and feeders in Google Sheets. TeamOne replaces the cube’s existing rules when you run the definition. Keep every calculation, directive, and feeder you want to retain in the block.

Set up the definition ​

  1. Enter ::rule in column A of the header row.
  2. On the next row, enter -cube in column A and the target cube name in column B. If you omit -cube, TeamOne uses the name in the header’s column B or the preceding ::cube definition.
  3. Add rule statements in column A in the order they should run. Keep directives such as SKIPCHECK; and FEEDERS; on separate rows.

Example ​

This rule for the Sales cube calculates Revenue on leaf cells. Use it as a starting point for a cube that contains these measures.

Column AColumn B
::rule
-cubeSales
['Revenue'] = N: ['Units'] * ['Unit Price'];

To compare existing rules between environments, use Compare models.