concatenate_with_group_by
Combine text values from a specified column into one delimited string per group, using key columns for grouping. Reverses split-to-rows by collapsing grouped text into a single field.
Instructions
Concatenate text within groups: Table.Group + Text.Combine (the inverse of split-to-rows). Collapses each group's textColumn values into one delimited string. keys is comma-separated; delimiter defaults to ", ". Appends one step to the table's M query.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"sessionId": "<sessionId>",
"table": "<table>",
"keys": "<keys>",
"textColumn": "<textColumn>"
},
"name": "concatenate_with_group_by"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| keys | Yes | the grouping key columns, comma-separated | |
| table | Yes | ||
| delimiter | No | delimiter between values (default ", ") | |
| sessionId | Yes | ||
| textColumn | Yes | the text column to concatenate within each group | |
| outputColumn | No | output column name (default "<textColumn> Concatenated") | |
| partitionName | No | partition name (optional; defaults to the first partition) |