add_custom_calendar_time_intelligence
Generate integer-index time intelligence for custom 445/454/544/weekly/13-period calendars where built-in TI fails. Builds TD/PY/PYTD/prev-week and MAT(364) measures from calendar index columns.
Instructions
Generate integer-index time intelligence for a custom (445/454/544/weekly/13-period) calendar - the case where built-in TI breaks. Builds *TD/PY/PYTD/prev-week/MAT(364) measures off DayIndex/MonthIndex/Year/PeriodIndex columns on the calendar table. kind = 445 | 454 | 544 | weekly | 13period.
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>",
"calendarTable": "<calendarTable>",
"kind": "<kind>",
"baseMeasure": "<baseMeasure>"
},
"name": "add_custom_calendar_time_intelligence"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | Yes | 445 | 454 | 544 | weekly | 13period | |
| table | Yes | home table for the new measures | |
| sessionId | Yes | ||
| baseMeasure | Yes | base measure name | |
| calendarTable | Yes | the custom calendar table name |