Subtotal By Unique Values
Returns a table that lists all of the unique values found in the first column of a specified table, along with the sum of the values in the corresponding fields of the remaining columns.
Arguments
The function has the following arguments:
Table Columns: Table for which subtotals are to be provided. The function uses the first column of
Table Columns as the index column. Subtotals are provided for the remaining columns of
Table Columns.
Value List: Table column that contains a set of values to be included in the set of values for the index column. This is useful if you want the returned table to include values that may or may not be in the
Table Columns index column.
Restrict To Value List: Numerical value (
0 or
1) that determines whether the table includes only rows that include the values of
Value List. If set to
1, only such values are included.
Use Column Names: Numerical value (
0 or
1) that determines whether original column names are retained in the returned table. If
Use Column Names is set to
1, original column names are retained. If set to
0, columns are given generic names. Generic column names are useful when the data attachment for the Table argument uses a substitution that causes the column names to change when the substitution changes.
This function returns a table.