Category: Transform / Advanced
This action generates group numbers in a new column.
A "group" is defined by unique values in a column or unique combinations of values across multiple columns.
This action can be used to create group ID numbers for later reference, lookups, or merges.
Setting | Description |
---|---|
Column | Select the column or columns to base the group numbers on. |
Groups are enumerated starting from 1.
The new column containing the group numbers will be named "GroupNo" and appear as the leftmost column, by default.
When multiple columns are selected, the unique combinations of values across the selected columns constitute the "groups".
Enumerate groups based on the values in the "Province" column.
Province | Amount | Total Tax |
---|---|---|
ON | 1000 | 125 |
ON | 1500 | 187.5 |
QC | 2000 | 270 |
GroupNo | Province | Amount | Total Tax |
---|---|---|---|
1 | ON | 1000 | 125 |
1 | ON | 1500 | 187.5 |
2 | QC | 2000 | 270 |
Column: Province
Generate group numbers from the values in the selected columns.
FirstName | Middle Init | LastName |
---|---|---|
Mary | K | Jones |
Sam | A | Walker |
Mary | M | Doe |
Reggie | B | Monroe |
Sam | D | Walker |
Mary | K | Doe |
GroupNo | FirstName | Middle Init | LastName |
---|---|---|---|
1 | Mary | K | Jones |
1 | Mary | M | Doe |
1 | Sam | A | Walker |
2 | Sam | D | Walker |
2 | Mary | M | Doe |
1 | Reggie | B | Monroe |
Columns: FirstName, LastName