Agentic patterns · Generative reporting · Approved queries · 9 of 10
trend_by A monthly series per entity
One metric month by month, as one small series per entity or region, actual against budget. For comparing shapes side by side.
The contract
| Parameter | Allowed | |
|---|---|---|
metric | required | net_sales trade_sales discounts_returns cost_of_sales gross_margin gross_margin_pct opex labor_costs operating_profit net_income |
from | required | First month, e.g. 2026-01 |
to | required | Last month, e.g. 2026-12 |
by | required | entity region |
entity | optional | Optional entity or region name. Omit for the asker's whole scope |
When the model uses it
To compare shapes across entities side by side.
Scope rule
No entity: the reader’s whole scope. With one, it must lie inside that scope or the call is refused.
Components that run it
SmallMultiples The model also calls it while it looks at the data.
Contact
Questions, ideas or a conversation?
I’m always glad to hear from people working on AI, product strategy, transformation or software.