Spectre Rotate Build Example

Suppose you have data like this:

A table of Oscar winners, organized by year and actor or actress last and first names.

And you want to build a cBase with the following 4 columns:

Year, Award, First Name, Last Name

You can include a rotate in your Spectre build. For example:

  1. In the Workbench Explorer, right-click on the text file and select Generate Spectre Build Script.

    The Save File dialog opens.

  2. Select the directory and name the script

    The ClosedBuild Flow Editor opens.

  3. In the flow panel, select the text-input object.

    Below the flow panel the properties panel displays the file's path and columns.

  4. In the Columns section, select integer for the Year column type and string for the other columns. Be sure Keep is checked.

  5. In the flow panel, right-click on the Concat object and select New Object After This > Rotate.

  6. Name and then select the Rotate object.

  7. For the Row Name Column, enter Award.

  8. In the Value Columns panel, click the plus sign twice.

    Two instances of New Column appear in the grid.

  9. In the first row, replace New Column with First Name. In the second row, replace New Column with Last Name.

  10. In the Input Columns panel, click the plus sign twice.

    Two instances of New Row appear in the grid.

  11. Under DimensionValue, replace New Row with Best Actor and Best Actress.

  12. Use the pull-downs under First Name and Last Name to select the appropriate source.

  13. In the flow panel, select the output object. Notice that cBase columns: Year, Award, First Name, and Last Name.

  14. Save and run the Build script.