The following scenario describes a Job that aggregates data from a delimited input file, using a defined pivot column.
Drop the following component from the Palette to the design workspace: tFileInputDelimited, tPivotToColumnsDelimited.
Link the two components using a Row > Main connection.
Set the input component
Double-click the tFileInputDelimited component to open its Basic settings view.
Browse to the input file to fill out the File Name field.
The file to use as input file is made of 3 columns, including: ID, Question and the corresponding Answer
Define the Row and Field separators, in this example, respectively: carriage return and semi-colon
As the file contains a header line, define it also.
Set the schema describing the three columns: ID, Questions, Answers.
Set the output component
Double-click the tPivotToColumnsDelimited component to open its Basic settings view.
In the Pivot column field, select the pivot column from the input schema. this is often the column presenting most duplicates (pivot aggregation values).
In the Aggregation column field, select the column from the input schema that should gets aggregated.
In the Aggregation function field, select the function to be used in case duplicates are found out.
In the Group by table, add an Input column, that will be used to group by the aggregation column.
In the File Name field, browse to the output file path. And on the Row and Field separator fields, set the separators for the aggregated output rows and data.