Infoworks 6.1.3
Prepare Data

Pivoting Table Data

The Pivot node is used to convert data from rows to columns.

Following is a sample table to be pivoted:

orders.order_idorders.cust_idorders.prod_id
50001SMITH10
50002SMITH20
50003ANDERSON30
50004ANDERSON40
50005JONES10
50006JONES20
50007SMITH20
50008SMITH10
50009SMITH20

The count for orders grouped by cust_id pivoted on prod_id is as follows:

cust_idprod__10prod__20prod__30prod__40
JONES11NULLNULL
ANDERSONNULLNULL11
SMITH23NULLNULL

Following are the steps to apply Pivot node in pipeline:

  1. Connect the source node to the Pivot node.

  2. Double-click the Pivot node. The properties page is displayed.

  3. Click the Configurations tab and click Edit Configurations.

  4. Select the column to be pivoted, enter the pivot values and click Save.

5. Click the Properties tab and click Add Group By.

  1. Select the group by columns, enter the column name and click Save.

7. Click Add Aggregate, select the aggregate operation, aggregate column and click Save. The columns are added
automatically based on the pivot values; these names can be overridden.

  1. Click the Preview Data tab to view the updated data.

NOTE For details on derivations, see Derivations.

On This Page
Pivoting Table Data