Loading data
The first thing to do when you start working with Spotfire is to add some data to analyze. If you are an author, you load the data to be analyzed and then create visualizations based on it. If you are a consumer, you launch an analysis that already exists, where an author has selected the data and created visualizations. The data in an analysis can be retrieved from, for example, a Microsoft Excel spreadsheet, a text file, data saved in the library, a data function designed to load data, or, data from various databases.
About this task
You add data or open analyses via the
Files and data flyout (reached by clicking
on the authoring bar).
The Files and data flyout contains a number of different elements:
![](../../images/data_files_and_data_flyout_with_numbers.png)
- The plus-sign is the access point to the Files and data flyout.
- Search for files, data sources and data in the upper part of the flyout. You can specify what item type to search for using keywords as described in Searching the library.
- The Recommended view will show different things depending on the context. For example, you may find sample data, or, recent analyses or recent data here.
- Under
Connect to, you will find a list of all
available data connectors. Click on a connector to see a list of data
connections from that source in the analysis, in the library, or to create a
new connection. Note that the installed client has access to authoring with
many more data sources than the web client.
See Supported data sources in the TIBCO Cloud™ Spotfire® web client for more information.
- Click Browse local file to choose data from one or more file sources, or to open local DXP files.
- The
Other option is sometimes available. It then
contains the
Linked copy to data table in analysis option
(previously known as "data table from current analysis" or "data table data
source") which can be used, for example, if you want to unpivot the data in an
already existing data table but also keep the original data table.
Using the installed client, you can also Paste data from clipboard, open Information designer to create new information links, open Manage data connections, or open data from databases which currently do not have a native data connector (which otherwise is the preferred option) using the Load Data with ODBC, OLE DB, or ADO.NET data provider option.
- Click Spotfire library to locate folders and files by browsing the library structure.
- The right part of the flyout shows the available options for the selected category. For example, here you will find recent analyses or recent data, a list of available data connectors, files or folders in the library, or other types of access points.
- Choosing the data to analyze
You select what data to analyze from the Files and data flyout. - Choosing how to load the data
When you have selected your data and added it to the Files and data flyout, you will see a summary of all data tables that will be added or updated. The summary view allows you to modify data loading settings (when this is applicable), and you can also select to exclude a data source that you do not need (for example, from a predefined data connection with multiple views). - 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. - Data from databases
In Spotfire, you can connect to and access data from your external data sources, such as databases, data lakes and warehouses. - Streaming data from TIBCO Cloud™ Data Streams
With TIBCO Cloud™ Spotfire you can analyze streaming data. If you use TIBCO Cloud™ Data Streams, it is easy to open your data streams in Spotfire. - Data preparation in Microsoft Excel
Before loading a Microsoft Excel file into an analysis, it is important that the data spreadsheet is free from irrelevant information and has a good structure to prevent misinterpretation. Possible actions that can be done before loading data are removing contextual information and combining columns into one. - Searching the library
You can search for basic names of files and data in the Files and data flyout. However, you can also search for particular types of library items, find the files that were last updated, or find all files updated by a certain person. Other parts of the Spotfire environment provide even more opportunities to find specific items in the library. - Opening an analysis saved in the library
You can open analyses saved in the library to continue working with them, or to just view analyses created by colleagues. - Limiting the data to load
If a data source contains large amounts of data, it can take a long time to retrieve all data and the application can be perceived as less responsive when working with it. You might also want to restrict some data from certain users. When you are using information links or data connections as data sources it is possible to limit what data to open in different analyses in a number of different ways.
- Choosing the data to analyze
You select what data to analyze from the Files and data flyout. - Choosing how to load the data
When you have selected your data and added it to the Files and data flyout, you will see a summary of all data tables that will be added or updated. The summary view allows you to modify data loading settings (when this is applicable), and you can also select to exclude a data source that you do not need (for example, from a predefined data connection with multiple views). - 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. - Data from databases
In Spotfire, you can connect to and access data from your external data sources, such as databases, data lakes and warehouses. - Streaming data from TIBCO Cloud™ Data Streams
With TIBCO Cloud™ Spotfire you can analyze streaming data. If you use TIBCO Cloud™ Data Streams, it is easy to open your data streams in Spotfire. - Data preparation in Microsoft Excel
Before loading a Microsoft Excel file into an analysis, it is important that the data spreadsheet is free from irrelevant information and has a good structure to prevent misinterpretation. Possible actions that can be done before loading data are removing contextual information and combining columns into one. - Searching the library
You can search for basic names of files and data in the Files and data flyout. However, you can also search for particular types of library items, find the files that were last updated, or find all files updated by a certain person. Other parts of the Spotfire environment provide even more opportunities to find specific items in the library. - Opening an analysis saved in the library
You can open analyses saved in the library to continue working with them, or to just view analyses created by colleagues. - Limiting the data to load
If a data source contains large amounts of data, it can take a long time to retrieve all data and the application can be perceived as less responsive when working with it. You might also want to restrict some data from certain users. When you are using information links or data connections as data sources it is possible to limit what data to open in different analyses in a number of different ways.