Compare two periods
compare_periodsCompares two periods side by side with % change in revenue, orders, average order value and refunds. If period_b is empty, compares with the period right before period_a.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| store | No | Store address or id. Leave empty if you have only one store. | |
| period_a | No | today, yesterday, this_week, last_week, this_month, last_month, last_7_days, last_30_days, last_90_days, this_year, last_year — or YYYY-MM-DD..YYYY-MM-DD. Uses the store's own timezone. | last_week |
| period_b | No | Same formats as period_a. Default: the period right before period_a. |