add_percent_of_total
Create a percent-of-total measure for a base measure across a dimension, with configurable scope (ALL, ALLSELECTED, ALLEXCEPT) to control the total context.
Instructions
Generate a percent-of-total measure for a base measure over a dimension. scope = ALL | ALLSELECTED | ALLEXCEPT (default ALLSELECTED).
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>",
"baseMeasure": "<baseMeasure>",
"dimension": "<dimension>"
},
"name": "add_percent_of_total"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scope | No | ALL | ALLSELECTED | ALLEXCEPT (default ALLSELECTED) | |
| table | Yes | home table | |
| dimension | Yes | dimension column as Table[Column] | |
| sessionId | Yes | ||
| baseMeasure | Yes | base measure name |