Compare two periods
compare_metric_periodsCompare a metric's latest days against the prior period with data, reporting means, medians, and differences. Use coverage fields to verify the actual windows compared.
Instructions
Compare the newest days days of a series against the days before them.
"Before" means the next-oldest days WITH DATA, so a gap makes the earlier
window older rather than emptier — read previous.first_day / previous.last_day
to see which period you actually got, and quote them.
Returns both windows' mean/median/min/max and the differences. It does not say which window is better; that depends on the metric and on the person.
Carries a coverage block over the days the arithmetic used: quote
coverage.days_covered and coverage.span_days beside any number here, and
read coverage.window_satisfied: false as a shorter history than you asked
for rather than as a missing kind.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| days | No | ||
| fresh | No | ||
| owner | No | ||
| series | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||