select_columns
Keep only specified columns in a Power BI table and drop all others, preserving the listed order. Appends Table.SelectColumns to the M query.
Instructions
Power Query Choose Columns: keep ONLY the listed columns (in that order) and drop the rest. Appends Table.SelectColumns 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": "select_columns"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| table | Yes | ||
| columns | Yes | columns to keep, comma-separated | |
| sessionId | Yes | ||
| partitionName | No | partition name (optional; defaults to the first partition) |