Make Calculations on the Data


There are many ways to make calculations on the data.

Aggregations and expressions

The most typical calculations that are made in the visualizations are the aggregations (for example, sum, average, max, and median), which you specify on the various visualization axes to summarize the data:

However, calculations on the data can be done in other ways and at different places in an analysis to get more out of your data.

First of all, if any of the predefined aggregations do not match the calculation you want to do, you can create your own expressions to apply on the various axes in a visualization as exemplified below:

Moreover, you can create expressions whose resulting values are added as a new column in a data table.

Expressions, predefined as well as new expressions, can be applied not only on the ordinary axes that are used for setting up a visualization. You can also use them, for example, to calculate the position of lines and curves in a visualization, to add error bars, or to create subsets.

Statistical tools

There are many built-in tools for performing powerful computational and statistic analytics. Curve fit models, methods for examining data relationships, data clustering methods, ranking of line similarities, or making predictions are all built-in tools.

The images below illustrate a couple of examples.

Curve fit:

K-means clustering:

Data functions and scripts

The use of data functions is a way of adding even more statistical capabilities to an analysis. Data functions are calculations based on scripts from S-PLUS, open source R, SASĀ®, or MATLABĀ®, or from R scripts running under TIBCO Enterprise Runtime for R (TERR) for Spotfire. Which of these options are available depend on your specific Spotfire environment. The data functions are executable within various features in Spotfire.

You can also define scripts, IronPython scripts, JavaScripts, or scripts written in custom query languages, to perform actions in your analysis. The scripts have access to the Spotfire API.

See also:

What is a Calculated Column?