::tm1import
Load a structured Google Sheets table into an IBM Planning Analytics cube. Use this task when your source contains dimension elements and values in columns, such as a forecast table prepared outside TeamOne. To send edits from upload-enabled TeamOne formulas or explorations, use ::sheet.upload.
Prepare the source table
Start with a header row and arrange the dimension columns in the same order as the dimensions in the target cube. TeamOne reads the table from the header to the last used row and column, so keep extra notes or totals outside the source tab. Use principal element names or aliases that the cube recognizes. Use principal names for measures so TeamOne can identify their data types.
One Value column
Use one column for every cube dimension, including the measure dimension. Name the final column Value. Each row specifies a single cube cell and its value.
| Version | Region | Measure | Value |
|---|---|---|---|
| Forecast | North | Units | 120 |
| Forecast | North | Revenue | 2400 |

You can also use a ::tm1data result as the source if its columns follow this layout.
One column per measure
Use one column for each dimension up to the last cube dimension. Then add a column for each measure you want to load, using the measure’s element name as its header.
| Version | Region | Units | Revenue |
|---|---|---|---|
| Forecast | North | 120 | 2400 |

Set up the task
Choose Data export task in TeamOne Configuration. The destination is the Planning Analytics cube.
| Option | What it controls |
|---|---|
-cube | Required. Name of the destination cube. |
-sheet | Required. Name of the source tab. |
-tm1env | Connection that contains the destination cube. Defaults to the connection selected in the sidebar. |
-startRow | Row containing the headers. Defaults to 1. |
-startColumn | First column of the table. Defaults to 1 for column A. |
-skipBlank | Set to true to skip empty cells. In the current add-on, this also skips numeric zeros. |
-checkIfUpdatable | Set to true to skip cells that TM1 reports as non-updatable, such as rule-calculated cells. |
With -skipBlank omitted, an empty value for a numeric measure is written as 0. Check the target cube and source data before running the task. See Common options for task descriptions and visibility.
Example
To load the table on Forecast Upload into the Sales cube, add these rows to .TEAMONE. Replace Test with the name of your intended connection.
| Column A | Column B |
|---|---|
::tm1import | Load forecast table |
-sheet | Forecast Upload |
-cube | Sales |
-tm1env | Test |
-checkIfUpdatable | true |
See the sample spreadsheet for another setup.
