Create Waterfall Tables for Revenue, Customers, Transactions, and Sales
Source:R/elog_waterfall_outputs.R
elog_waterfall_tables.RdThis function generates a list of waterfall tables for different metrics
(revenue, customers, transactions, and sales) based on an event log (elog).
Arguments
- elog
A data frame representing the event log containing transaction details.
- elog_first_date
A data frame containing the first date of each event in
elog. IfNULL, it will be computed usingelog_add_first_date.- fiscal_start
An integer specifying the fiscal year start month (default is 1).
- transpose
A logical value indicating whether to transpose the waterfall tables (default is
TRUE).
Value
A named list of waterfall tables for revenue, customers, transactions, and sales, organized by yearly, quarterly, and monthly summaries.
Examples
waterfall_tables <- elog_waterfall_tables(elog, fiscal_start = 1)
#>
#>
#> Building packages ■■■■■■■■■■■■■ 42% | ETA: 2m
#>
#> ── Elog Summary ─────────────────────────────────────────────────────────────────────────────────────────────────────────────
#> Building packages ■■■■■■■■■■■■■ 42% | ETA: 2m
#>
#> • 10,000 customers
#> Building packages ■■■■■■■■■■■■■ 42% | ETA: 2m
#>
#> • 19,411 transactions
#> Building packages ■■■■■■■■■■■■■ 42% | ETA: 2m
#>
#> • 1.9 average transactions per customer
#> Building packages ■■■■■■■■■■■■■ 42% | ETA: 2m
#>
#> • 47,279 items purchased
#> Building packages ■■■■■■■■■■■■■ 42% | ETA: 2m
#>
#> • $2,456,399 sales
#> Building packages ■■■■■■■■■■■■■ 42% | ETA: 2m
#>
#> • 2.4 average items per transaction
#> Building packages ■■■■■■■■■■■■■ 42% | ETA: 2m
#>
#> • $127 average value per item
#> Building packages ■■■■■■■■■■■■■ 42% | ETA: 2m
#> `mutate_if()` ignored the following grouping variables:
#> • Column `First Year`
#> `mutate_if()` ignored the following grouping variables:
#> • Column `First Year`
#> `mutate_if()` ignored the following grouping variables:
#> • Column `First Year`
#> `mutate_if()` ignored the following grouping variables:
#> • Column `First Year`
#> `mutate_if()` ignored the following grouping variables:
#> • Column `First Year`