Inverting rows and columns in a table

Use the Invert Data transformer to invert the rows and columns in a table. Optionally, you can specify a pivot column that contains data to be used as column headings when creating the output table. Before you begin this task, you must connect a source table from the warehouse database to the step.

The Invert Data transformer drops the existing database table and recreates it during each run. Each time that you run a step using this transformer, the existing data is replaced, but the table space and table index names are preserved.

A step that uses the Invert Data transformer must be promoted to production mode before you can see the actual data produced.

../byb.gif Authorities and privileges

../rule.gif

To define an Invert transformer step:

  1. Open the step notebook.

  2. Specify information for your step:

  3. On the Parameters page, click a column in the Available columns list. Then, click > to move the selected column to the Pivot column field. If you leave this field empty, the transformer will invert the rows and columns using numbers in place of column names.

  4. Optional: Select the Include sequence column in output check box to create a column in the output table that contains an ordered list of numbers. The list of numbers starts at 1 and increments by 1.

  5. If your step is not connected to a target table, click Create warehouse target table based on parameters.

  6. If you clicked Create warehouse target table based on parameters, select a Warehouse target from the Warehouse target list.

  7. On the Processing Options page, in the Agent Site list, select an agent site where you want your step to run. The selections in this list are agent sites that are common to the source tables, the target table, and the transformer or program that you are defining.

  8. If you want to have the option to to run your step at any time, select the Run on demand checkbox. Your step must be in test or production mode before you can run it.

  9. Optional: Select the Populate externally check box if the step is populated externally, meaning that it is invoked in some way other than by the Data Warehouse Center. The step does not have to have any other means of running in the Data Warehouse Center in order to change the mode to production.

    If Populate externally is not selected, then the step must either have a schedule, be linked to a transient table that is input to another step, or be started by another program in order to change the mode to production.

  10. In the Retry area, specify how many times you want the step to run again if it needs to be retried and the amount of time that you want to pass before the next run of the step.

  11. In the Log table field, specify a log table.

  12. In the Trace level field, specify a trace level.

  13. Click OK to save your changes and close the step notebook.

Related information

Moving and transforming data

Population type descriptions

List of steps and step subtypes

Data Warehouse Center concepts