::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
- Enter
::rulein column A of the header row. - On the next row, enter
-cubein 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::cubedefinition. - Add rule statements in column A in the order they should run. Keep directives such as
SKIPCHECK;andFEEDERS;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 A | Column B |
|---|---|
::rule | |
-cube | Sales |
['Revenue'] = N: ['Units'] * ['Unit Price']; |
To compare existing rules between environments, use Compare models.
