Current full period quarter over previous full period quarter
qoq.RdA short description...
Examples
library(contoso)
qoq(sales,.date=order_date,.value=quantity,calendar_type='standard',lag_n=1)
#>
#> ── Quarter over quarter ────────────────────────────────────────────────────────
#> Function: `qoq` was executed
#>
#> ── Description: ──
#>
#> This creates a full quarter `sum()` of the previous quarter quantity and
#> compares it with the full quarter `sum()` current quarter quantity from the
#> start of the standard calendar quarter to the end of the quarter
#>
#> ── Calendar: ──
#>
#> • The calendar aggregated order_date to the quarter time unit
#> • A standard calendar is created with 0 groups
#> • Calendar ranges from 2021-05-18 to 2024-04-20
#> • 222 days were missing and replaced with 0
#> • New date column date, year and quarter was created from order_date
#>
#> ── Actions: ──
#>
#> ✔Aggregate quantity
#> ✔Shift 1 quarter
#> ✔Compare previous full quarter
#> ✖Proportion Of Total
#> ✖Count Distinct
#>
#>
#> ── Next Steps: ──
#>
#> • Use `calculate()` to return the results
#> ────────────────────────────────────────────────────────────────────────────────
#>