Block Group: | Table Operations |
Icon: |
The Group By block returns a new table that contains one row for each group of rows in the input table. A group is composed of rows that hold an identical value in the specified column.
For information on using dataflow blocks, see Dataflow.
For answers to some common questions about working with tables, see Tables.
The following properties of the Group By block can take input and give output.
input receives the table whose values you want to group.
baseColumn specifies the name of the table column to use for creating groups. Rows that hold an identical value in this column will be grouped together.
nestedData specifies whether to keep the original rows and store them in a new column of the output table as nested tables. For more information about nested tables, see How do I view the data in nested tables?
includeBlankValue specifies whether to create a group for an empty cell in baseColumn, if any empty cells exist.
column n specifies the name of an input table column to include in the output table.
method n specifies the value that will be stored in column n. method n can be one of the following:
outColumn n specifies the output table column name for the column of grouped column n values.
The following property of the Group By block can give output but cannot take input.
output returns the output table.
The following image shows an example of the Group By block. In this example, rows are grouped using the values in the v1 column. The output table displays a sum of v2 values and a list of v3 values for each group.