How to Add Rows


If you are working with 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 library, from imported data connections, from information links, from data functions that produce data, or, from the clipboard.

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 or from the Data canvas.

When you add data from the Files and data flyout, you can select to add the data as new rows in another data table from the final step in the add data workflow (the summary view):

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

To insert rows into a specific place in the data table structure:

  1. On the authoring bar, click Data canvas .

  2. Make sure the data table of interest is selected in the upper-left part of the Data canvas.

  3. Comment: This step is only applicable if you have two or more data tables in the analysis.

  4. In the data table structure, click the plus sign between the nodes where you want to insert rows and select Add rows.

  5. Tip: You can also add rows between previously added transformation groups for a selected node.

  6. Select data to add rows from.

  7. In the flyout, click Settings for added rows.

  8. 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. Alternatively, you can select Use auto-match to automatically match on name and data type, if you know that these are the same in both sources. However, with auto-match, Spotfire will automatically match columns on name and data type each time the data is reloaded and manual matching of columns will be unavailable.

  9. 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. See the preview for a hint on how data will be matched.

  10. 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.

  11. Comment: Note that if the data source from which columns were added can be reloaded, and new columns become available after a reload, then the new columns will automatically become included. If this was not desired, you may want to exclude new columns after reloading data by editing the settings for added rows.

  12. Optionally, change the settings under Identify origin of rows.

  13. Comment: 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 column to add this information to an existing column.

  14. When you are done, click OK.

  15. Optionally, click Transform data to apply transformations on the new source data.

    Comment: See Transforming Data to learn more.

  16. Click OK.

  17. Response: The rows are added to your data table.

See also:

Choosing the Data to Analyze

Choosing How to Load the Data

How to Edit Column Matching or Other Settings for Added Rows

How to Add Columns

Transforming Data