Remove Rows/Columns

The Remove Rows/Columns transformation enables you to remove specified rows and/or columns from the table, whether or not they are empty. For example, when you want to remove an unused row or column from the table, then this transformation can be used.

Prerequisites

The instructions in this topic assume that you have already added the transformation to your table by following the instructions in the Add a Transformation to a Table or Table Type subsection of the Table Transformations topic here.

Example

Before

Before the transformation is applied, the 'Country of Origin' column is present.

After

After applying the transformation, the 'Country of Origin' column is gone.

See the Sorting Transformation topic here for a more complex example which incorporates both a sorting transformation and a row removal transformation.

Steps

  1. After adding the transformation, under Parameters, click the ellipsis button (). The Remove Rows/Columns dialog displays.

  1. Click the ellipsis button () to launch the Select Row/Column dialog.

After clicking Add, either a Row or Column field displays, depending on whether you are selecting a row or column. Click the ellipsis button () to launch another Select Row/Column dialog. This is identical to the previous 'Select Row/Column' dialog, except without the Group option. Click OK after making your selection.

Click Add again on the 'Select Row/Columns to be grouped' dialog to repeat the previous steps and add more columns to the group. Click OK when done.

Enter the starting and ending column numbers in the Column From and To fields, then click OK when done. To enter a range that will contain the remainder of the table if rows or columns are added later, enter a large number in the 'To' field such as 5999. Note that these fields can only contain integer values.

  1. Click OK.