unpivot_other_columns
Keep the specified columns and unpivot all others into Attribute/Value pairs, automatically handling new columns.
Instructions
Power Query Unpivot Other Columns: keep the listed columns and unpivot every OTHER column into Attribute/Value pairs (robust to new columns appearing). Appends Table.UnpivotOtherColumns to the table's M query. keepColumns is comma-separated.
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>",
"keepColumns": "<keepColumns>"
},
"name": "unpivot_other_columns"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| table | Yes | ||
| sessionId | Yes | ||
| keepColumns | Yes | columns to keep (everything else is unpivoted), comma-separated | |
| partitionName | No | partition name (optional; defaults to the first partition) |