unpivot_columns
Reshape Power BI data by converting selected columns into attribute-value row pairs. Pass comma-separated column names to append Table.Unpivot.
Instructions
Power Query Unpivot Columns: turn the listed columns into Attribute/Value row pairs. Appends Table.Unpivot to the table's M query. columns 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>",
"columns": "<columns>"
},
"name": "unpivot_columns"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| table | Yes | ||
| columns | Yes | columns to unpivot, comma-separated | |
| sessionId | Yes | ||
| partitionName | No | partition name (optional; defaults to the first partition) |