Skip to main content
Pentaho Documentation

Row Normaliser

Parent article

The Row Normaliser step converts the columns of an input stream into rows. You can use this step to normalize repeating groups of columns.

General

The following fields and buttons are general to this transformation step:

FieldDescription
Step nameSpecify the unique name of the Row Normaliser step on the canvas. You can customize the name or leave it as the default.
Type fieldSpecify the name of the new column in the output data.

Fields table

Fields table in Row               normaliser

FieldDescription
Fieldname Name of the fields to normalize.
TypeSpecify the string used to classify the field.
new fieldSpecify the fields where you want to transfer the new values.
Get FieldsRetrieves a list of all fields coming in on the streams.

Examples

Perform the following steps to demonstrate a simple example of the Row Normaliser step:

Procedure

  1. Create the following sample table of product sales data as an input source:

    DatePR1_NRPR1_SLPR2_NRPR2_SLPR3_NRPR3_SL
    January5100102504150
  2. Input the values shown in the following graphic in the Row Normaliser step:

    Row normaliser values example
  3. Run the the Row Normaliser step.

Results

The following table will display in the Preview data pane:

Results in the Preview data pane

The design-tools/data-integration/samples/transformations directory contains the following example KTRs that show how to use this step:

Example KTR FileDescription
Row Normaliser - Simple example.ktrShows a simple example of normalizing sales data.
Row Normaliser - turn a single row into 3 rows.ktrShows an example of splitting fields into columns then normalizing the columns.

Metadata injection support

You can use this step with ETL metadata injection to pass metadata to your transformation at runtime.

The following fields of the Row Normaliser step support metadata injection:

  • Fieldname
  • Type
  • new field