Adding more data
Data can be added to the analysis in several different ways: as new columns, as new rows or as new data tables. All of these methods are available when you add data from the Files and data flyout. If Spotfire identifies that new data seems to fit in an already available data table, you might get a recommendation to add the data as new rows. However, you can always ignore the recommendation.
About this task
See also Choosing how to load the data.
Adding data as separate data tables is useful if the new data is unrelated to the previously opened data table or if the new data is in a different format (pivoted vs. unpivoted). Data can be added from local files on your computer, or from different types of data files that have been previously saved in the library using the Windows client. You might also have access to other data sources from where you can add data.
Data from different data tables can be viewed in the same visualization, provided that there is at least one column in both data tables that can be used to match the data from the two data tables. You can, of course, also create separate visualizations for different data tables.
In some cases, when you need to bring in-memory data from different data sources together in a single visualization, it may be more suitable to add columns or add rows to a data table, rather than keeping two different data tables.
Procedure
What to do next
If the data was added as new data tables, determine whether the new data tables should be related to each other or to previously added data tables. Remember that you must define a relation if the new data table is to be used to create details visualizations for the previously added data tables. Read more in Related data tables, joins and column matches.
- Related data tables, joins and column matches
Depending on how you access your data and which client you use, there are several different ways to link data from different sources together using Spotfire. With in-memory data, you can add new data as columns or rows to an existing data table. If you use data from data connections, you might be able to create a structural relation already on the database side, when creating the data connection. If you choose to keep your data as separate data tables in Spotfire, you can either create a relation between the data tables to support brush-linking, or, simply use columns from different data tables directly in a visualization, if they have at least one column match. - Adding rows to a data table
If you are working with imported (in-memory) data, you can add rows from a different source to your current data table. Data can be added from a local file, a data file previously saved in the Spotfire library (using the installed client), from data functions that produce data, from data connections saved in the library, or you can add data directly from Google Analytics or from Salesforce, if you have access to those systems. In the installed client you can also add data directly from other data sources using connectors, from information links, or from the clipboard. - Adding columns to a data table
If you are working with imported (in-memory) data, you can add columns to your current data table to create a join between data from different sources and merge it to a single data table. Data can be added from a local file, a data file previously saved in the Spotfire library (using the installed client), from data functions that produce data, from data connections saved in the library, or you can add data directly from Google Analytics or from Salesforce, if you have access to those systems. In the installed client you can also add data directly from other data sources using connectors, from information links, or from the clipboard. - Data tables in Spotfire
The data table is a central concept in Spotfire. All visualizations you create are based on data from one or more data tables in the analysis. You automatically get a data table when you add the first data to an analysis, but the data table can often be refined by adding more data from other sources (as rows or columns), by adding calculated columns or hierarchies, applying transformations, and so on. You can work with your data table in the data canvas. An analysis can contain one or more data tables and all data tables are saved when the analysis is saved. - Multiple data tables in one visualization
Sometimes, the data you want to analyze in Spotfire is located in different data tables. Working with visualizations combining data from multiple data tables is not very different from working with data from a single data table. You can choose the visualization that best suits your data, you can filter, mark, and drill down in your data. However, a couple of concepts are important when configuring and working with a visualization combining data from different data tables.