Create a Workbook with Waterfall Tables
Source:R/elog_waterfall_outputs.R
elog_waterfall_workbook.RdThis function generates an Excel workbook containing the waterfall tables.
Examples
# Assuming `waterfall_tables` is created by `create_waterfall_charts()`
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`
workbook <- elog_waterfall_workbook(waterfall_tables)
openxlsx::saveWorkbook(workbook, "waterfall_charts.xlsx", overwrite = TRUE)