Add Date Table
add_date_tableCreate a calculated calendar table from a model date column, mark it as a date table with year/month/quarter columns, and relate it to your model.
Instructions
Add a calculated calendar table (CALENDAR over MIN..MAX of date_column, e.g. 'Tilaukset[Tilauspäivämäärä]'), marked as date table, with Vuosi/Kuukausi/Kuukauden nimi/Neljännes/Vuosineljännes columns. Then relate it with add_relationship.
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": {
"pbip_path": "<pbip_path>",
"date_column": "<date_column>"
},
"name": "add_date_table"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pbip_path | Yes | ||
| table_name | No | Päivämäärä | |
| date_column | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||