IMPORTANT! This is a Laboratory tool and is not for production use. It may have documented known issues, may not be feature complete, and is subject to change.
The Make Columns tool takes rows of data and arranges them by wrapping records into multiple columns. The user can specify how many columns to create and whether they want records to layout horizontally or vertically.
This tool is useful for reporting or display purposes where you want to layout records to fit nicely within a table. Instead of showing a list of 50 records, you may want to wrap those records into a table of 5 columns and 10 rows, for example.
Number of columns: Specify the number of columns to create. For each existing field, a new column will be created with an "Column_#" pre-pended to the column name.
If the input contains 2 fields and 2 columns are specified (with no group specification), 4 columns will come out of the tool.
If the input contains 2 fields and 2 columns are specified along with one group field, 3 columns will come out of the tool.
Arrange
Horizontally: records are ordered by their incoming position
and cells will be populated left to right until the specified
amount of columns runs out, then they will wrap to the next row
and continue left to right.
Arrange
Vertically: records are ordered by their incoming position
and cells will be populated top to bottom in rows and will wrap
to the specified amount of columns.
Select Group fields. This setting is optional. When a group field is specified, records are sorted by the Group value and arranged according to their incoming record position across columns for the particular group.
Input Data |
Make Columns Tool Configuration |
Output |
|||||||||||||||||||||||||||||||||||||||||||||||
|
Number of Columns: 2 Arrange Horizontally No Group field
|
|
|||||||||||||||||||||||||||||||||||||||||||||||
|
Number of Columns: 5 Arrange Horizontally No Group field |
If there is not an exact multiple of records, NULL records will pad out the set. |
|||||||||||||||||||||||||||||||||||||||||||||||
|
|
|
|||||||||||||||||||||||||||||||||||||||||||||||
|
Number of Columns: 2 Arrange Horizontally Group field: Group |
|
|||||||||||||||||||||||||||||||||||||||||||||||
|
Number of Columns: 2 Arrange Vertically Group field: Group |
|
©2017 Alteryx, Inc., all rights reserved. Allocate®, Alteryx®, Guzzler®, and Solocast® are registered trademarks of Alteryx, Inc.