add_semiadditive_measures
Create opening/closing balance measures and last/first non-blank values over a date column. Solve inventory and account-balance reporting by generating semi-additive calculations automatically.
Instructions
Generate semi-additive balance measures (opening/closing balance, last/first non-blank) over a value column and date column - the standard inventory / account-balance pattern.
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>",
"valueColumn": "<valueColumn>",
"dateColumn": "<dateColumn>"
},
"name": "add_semiadditive_measures"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| table | Yes | home table | |
| sessionId | Yes | ||
| dateColumn | Yes | date column as Table[Column] | |
| valueColumn | Yes | value column as Table[Column] |