Search Results

Adding rows to a data table

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 Windows client), or, you can add data directly from Google Analytics or from Salesforce, if you have access to those systems.

Even though data from different data tables often can be viewed in the same visualization, it may be preferred to actually incorporate similar data into a single data table. For example, if all columns are the same in the data sources and you know that you want to use summarized values from all sources in your visualization.

You add data from the Files and data flyout .

When you add data into your analysis, you can select to add the data as new rows in another data table, from the final step in the add data workflow:

You can also insert rows into a specific place in a data table, as described below.

Prerequisites

You must have some data loaded in the analysis, and the analysis must be in Editing mode.

Procedure

  1. On the authoring bar, click Data canvas .
  2. Make sure the data table of interest is selected in the upper-left drop-down list.
    This step is only applicable if you have two or more data tables in the analysis.
  3. In the data table structure, click on the plus sign between the nodes where you want to add rows, and select Add rows.
    Tip: You can also add rows between previously added transformation groups for a selected node.
  4. Select data to insert rows from.
  5. In the flyout, click Settings for added rows.
  6. In the Add rows – match columns dialog, verify that the suggested column matching is valid, or edit the matching as desired. This is done by adding or removing matches between columns From original data and From new data.
    Click on the plus sign and select a column from the list to add a match for one of the columns from the original data. Click on the x on a row to remove a match.
    Tip: When adding rows, you will append new rows to the original data table. This means that you should probably try to match as many columns as possible.
  7. Optionally, if there are additional columns in the added data, you can select to include or skip these columns under Include additional columns from new data by selecting or clearing the check box for each column.
    Note: If the data source from which data was added can be reloaded, and new columns become available after a reload, then the new columns will automatically become included. If this is not desired, you may want to exclude new columns after reloading data by editing the settings for added rows.
  8. Optionally, change the settings under Identify origin of rows in a column.
    Select Do not identify origin to skip this option, Create new column to add a new column with different values for data from the original source and data from the added source, or select Use existing to add this information to an existing column.
  9. When you are done, click OK.

Example: Adding rows from Salesforce

In this example, data has already been opened from a local Excel file. In the Data canvas, select the data table of interest, determine where you want to add rows (between the nodes in the graphical structure or between transformation groups), and click Add rows:

Choose a new or a predefined connection to Salesforce and sign in. Select the data to add and click OK. In the Add rows – match columns dialog, verify that the suggested column matching is valid, or add or remove matches between columns From original data and From new data. When you are satisfied with the data selection and settings, click OK to close the flyout and add the data.