Skip to content

::tm1datacompare ​

Check whether the data behind a report changed after a load, a rule change, or a deployment. TeamOne reruns a saved ::tm1data query and compares the fresh results with the values already on its output tab.

Capture a baseline ​

Run the data query against the connection you want to use as your baseline. Use column A as the starting column for the query results. Keep those results on the output tab until you’ve reviewed the comparison. Rerunning the data query rewrites the baseline.

Set up the comparison ​

Choose Data compare task in TeamOne Configuration.

  • -tm1data — Required. Name of the saved data query that produced the baseline.
  • -tm1env — Connection to query for the comparison. Defaults to the connection selected in the sidebar.
  • -activate — Set to true to open the output tab when the comparison finishes.

For a before-and-after check in one environment, use that same connection for both runs. For a comparison between environments, set -tm1env to the second connection. See Common options for task descriptions and visibility.

Example ​

Run Load forecast baseline against Production. To compare the values on that tab with Test, add these rows to .TEAMONE and run Compare forecast against Test.

Column AColumn B
::tm1datacompareCompare forecast against Test
-tm1dataLoad forecast baseline
-tm1envTest
-activatetrue

Read the results ​

TeamOne writes the comparison next to the baseline on the same tab. The comparison cell is blank when the value matches, shows the new value when it has changed, or shows - when the row is missing from the new results. New records appear below the comparison rows with their identifying elements. Numeric values are compared to four decimal places.

Data comparison results shown beside the original query results

An environment comparison can switch the connection the saved query uses in the current sidebar session. Refresh configuration before capturing a new baseline to restore the saved connection settings.

See the sample spreadsheet for another setup. To compare model objects such as cubes, dimensions, or rules, use Compare models.