Skip to content

::tm1data ​

Bring data from an IBM Planning Analytics cube into a Google Sheets tab. Save the query so you can pull the latest figures into the same tab for review or use them as the baseline for a data comparison.

Set up the task ​

Choose Data query task in TeamOne Configuration.

  • -sheet — Required. Name of the output tab. TeamOne creates the tab if needed.
  • -tm1env — Connection to query. Defaults to the connection selected in the sidebar.
  • -activate — Set to true to open the output tab after the query writes the results.

Choose a dedicated output tab

TeamOne clears an existing output tab before writing fresh results. Keep formulas, notes, and other content you want to retain on a separate tab.

Results start at A1 by default. On the .TEAMONE sheet, you can set -startRow and -startColumn to change the starting cell. These settings change where results are written after the tab is cleared.

See Common options for task descriptions and visibility.

Choose what to query ​

SourceSettings
Saved cube viewSet -cube to the cube name and -view to the view name.
MDX queryPut the full query in -mdx.
Selected dimension elementsSet -cube and add one row for each dimension you want to select elements from.

If you supply more than one source, TeamOne uses the saved view first, then the MDX query, then the dimension selections.

Select elements by dimension ​

On .TEAMONE, enter the dimension name in column A and its set expression in column B. Use dimension^hierarchy in column A to select an alternative hierarchy. Omit a dimension row to use its default member.

SelectionExample in column B
Named elementsActual;Budget;Forecast
Public subset$SubsetName
All members, leaf members, or root members$ALL, $LEAVES, or $ROOTS
MDX set{[Calendar].[FY2026].Children}
Name pattern/FY2026 Q?/
Combined selectionFY2025;FY2026;{[Calendar].[FY2026].Children};/FY2027 Q?/

Example ​

To load the Forecast Review view from the Sales cube, add these rows to .TEAMONE. Replace the cube and view names with the ones in your model.

Column AColumn B
::tm1dataLoad forecast baseline
-sheetForecast Data
-cubeSales
-viewForecast Review

The screenshots show a task defined with dimension selections instead of a saved view and its resulting output.

Data query task with dimension selections

Cube data written to the query output tab

Admins can also choose Export data from a cube or view menu on the Model tab to generate a starter task on .TEAMONE. See the sample spreadsheet for another setup.