add_matrix
Add a matrix visual to a Power BI report page by providing rows, columns, and measure values as JSON arrays.
Instructions
Add a matrix. rows/columns/values = JSON arrays of {table,field,kind}. Rows/columns are typically columns; values are measures.
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": {
"reportSessionId": "<reportSessionId>",
"pageName": "<pageName>",
"rows": "<rows>",
"values": "<values>"
},
"name": "add_matrix"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | ||
| y | No | ||
| rows | Yes | JSON array of {table,field} for rows | |
| title | No | ||
| width | No | ||
| height | No | ||
| values | Yes | JSON array of {table,field,kind} for values (measures) | |
| columns | No | JSON array of {table,field} for columns (optional, '[]' for none) | [] |
| pageName | Yes | ||
| reportSessionId | Yes |