demote_headers
Demote column headers to a data row in Power BI by appending Table.DemoteHeaders to the M query, turning headers into the first row.
Instructions
Power Query Use Headers as First Row: push the current column names back down into a data row. Appends Table.DemoteHeaders 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>"
},
"name": "demote_headers"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| table | Yes | ||
| sessionId | Yes | ||
| partitionName | No | partition name (optional; defaults to the first partition) |