PnL Metrics

Computes standardized PnL metrics (margins, totals, and percentages) on top of the hierarchical PnL Rollup.

Purpose

Produce a canonical set of PnL metrics (gross margin, contribution margin, total cost, EBITDA, and related percentages) derived from the rolled-up PnL data.

This model encodes financial definitions once so that margins and ratios are consistent across all reports, dashboards, and analyses.

Business Logic

  • Start from the fully aggregated GL hierarchy provided by pnl_rollup
  • Compute absolute PnL metrics using reserved GL account IDs:
    • Gross Margin 3000 = Revenue 1000 − COGS 2000
    • Contribution Margin 5000 = Gross Margin 3000 − Commercial Costs 4000
    • Total Cost 7000 = COGS 2000 + Commercial Costs 4000 + Fixed Costs 6000
    • EBITDA 8000 = Contribution Margin 5000 − Fixed Costs 6000
  • Append derived metric rows to the base PnL data
  • Compute percentage KPIs relative to Revenue 1000:
    • COGS %
    • Gross margin %
    • Commercial costs %
    • Contribution margin %
    • Fixed costs %
    • Total cost %
    • EBITDA %
  • Percentage calculations:
    • Use revenue as denominator
    • Protect against division by zero
  • Output includes both:
    • Absolute values (amounts)
    • Relative values (percentages)

Final dataset is ordered by value type, period, and GL account.

Output Contract

Definitions

The output contract has the same setup as PnL Rollup but only includes the absolute and relative margins.

ColumnDescription
periodMonthly reporting period. Links to periods semantic contract
dateMonthly reporting period represented as YYYY-MM-DD with convention to first day of the month. Links to periods semantic contract
gl_idGL Account identifier. Links to GL Accounts semantic contract
gl_accountGL Account name at any hierarchy level. Links to GL Accounts semantic contract
value_type_idValue Type identifier. Links to Value Type semantic contract
typeValue Type name. Links to Value Type semantic contract
amountAggregated amount including all child accounts

Sample & Implementation

PnL metrics derived from rolled-up GL accounts.
perioddategl_idgl_accountvalue_type_idtypeamount
25012025-01-012001cogs_pct1actuals0.04254189902398754
25012025-01-013000gross_margin1actuals13159473.9368978
25012025-01-013001gross_margin_pct1actuals0.9574581009760124
25012025-01-014001commercial_costs_pct1actuals0.01615296769244857
25012025-01-015000contribution_margin1actuals13159473.9368978
25012025-01-015001contribution_margin_pct1actuals0.9574581009760124
25012025-01-016001fixed_costs_pct1actuals0.022506024227317668
25012025-01-017000total_cost1actuals1116039.4454211001
25012025-01-017001total_cost_pct1actuals0.0812008909437538
25012025-01-018000ebitda1actuals13159473.9368978
25012025-01-018001ebitda_pct1actuals0.9574581009760124
25022025-02-012001cogs_pct1actuals0.04221968104179102
25022025-02-013000gross_margin1actuals13669866.7586018
25022025-02-013001gross_margin_pct1actuals0.957780318958209
25022025-02-014001commercial_costs_pct1actuals0.015451658719511865
25022025-02-015000contribution_margin1actuals13669866.7586018
25022025-02-015001contribution_margin_pct1actuals0.957780318958209
25022025-02-016001fixed_costs_pct1actuals0.021376198332918053
25022025-02-017000total_cost1actuals1128201.6261504001
25022025-02-017001total_cost_pct1actuals0.07904753809422094
25022025-02-018000ebitda1actuals13669866.7586018
25022025-02-018001ebitda_pct1actuals0.957780318958209
25032025-03-012001cogs_pct1actuals0.042625983606475674
25032025-03-013000gross_margin1actuals14117061.0996524
25032025-03-013001gross_margin_pct1actuals0.9573740163935244
25032025-03-014001commercial_costs_pct1actuals0.014821967995238482
25032025-03-015000contribution_margin1actuals14117061.0996524
25032025-03-015001contribution_margin_pct1actuals0.9573740163935244
25032025-03-016001fixed_costs_pct1actuals0.021293817423827136
25032025-03-017000total_cost1actuals1161095.1889166
25032025-03-017001total_cost_pct1actuals0.0787417690255413
25032025-03-018000ebitda1actuals14117061.0996524
25032025-03-018001ebitda_pct1actuals0.9573740163935244
25042025-04-012001cogs_pct1actuals0.045015405758744985
25042025-04-013000gross_margin1actuals13553455.7882327
25042025-04-013001gross_margin_pct1actuals0.954984594241255
25042025-04-014001commercial_costs_pct1actuals0.016100846086227714
25042025-04-015000contribution_margin1actuals13553455.7882327
25042025-04-015001contribution_margin_pct1actuals0.954984594241255
25042025-04-016001fixed_costs_pct1actuals0.02073829138952832
25042025-04-017000total_cost1actuals1161706.6280281001
25042025-04-017001total_cost_pct1actuals0.08185454323450103
25042025-04-018000ebitda1actuals13553455.7882327
25042025-04-018001ebitda_pct1actuals0.954984594241255
25052025-05-012001cogs_pct1actuals0.037968356963141436
25052025-05-013000gross_margin1actuals14963384.864054099
25052025-05-013001gross_margin_pct1actuals0.9620316430368585
25052025-05-014001commercial_costs_pct1actuals0.014756589485791425
25052025-05-015000contribution_margin1actuals14963384.864054099
25052025-05-015001contribution_margin_pct1actuals0.9620316430368585
25052025-05-016001fixed_costs_pct1actuals0.018746945426797133
25052025-05-017000total_cost1actuals1111669.6969786002
25052025-05-017001total_cost_pct1actuals0.07147189187573
25052025-05-018000ebitda1actuals14963384.864054099
25052025-05-018001ebitda_pct1actuals0.9620316430368585
25062025-06-012001cogs_pct1actuals0.03631290232710876
25062025-06-013000gross_margin1actuals16893024.146965303
25062025-06-013001gross_margin_pct1actuals0.9636870976728913
25062025-06-014001commercial_costs_pct1actuals0.013307921543042896
25062025-06-015000contribution_margin1actuals16893024.146965303
25062025-06-015001contribution_margin_pct1actuals0.9636870976728913
25062025-06-016001fixed_costs_pct1actuals0.01746322437540069
25062025-06-017000total_cost1actuals1175954.7778785
25062025-06-017001total_cost_pct1actuals0.06708404824555235
25062025-06-018000ebitda1actuals16893024.146965303
25062025-06-018001ebitda_pct1actuals0.9636870976728913
25072025-07-012001cogs_pct1actuals0.040321591106222236
25072025-07-013000gross_margin1actuals14798614.627300803
25072025-07-013001gross_margin_pct1actuals0.9596784088937778
25072025-07-014001commercial_costs_pct1actuals0.013921610299140132
25072025-07-015000contribution_margin1actuals14798614.627300803
25072025-07-015001contribution_margin_pct1actuals0.9596784088937778
25072025-07-016001fixed_costs_pct1actuals0.019125041082394354
25072025-07-017000total_cost1actuals1131366.8583106
25072025-07-017001total_cost_pct1actuals0.07336824248775672
25072025-07-018000ebitda1actuals14798614.627300803
25072025-07-018001ebitda_pct1actuals0.9596784088937778
25082025-08-012001cogs_pct1actuals0.03965977930080613
25082025-08-013000gross_margin1actuals14588874.315891301
25082025-08-013001gross_margin_pct1actuals0.9603402206991939
25082025-08-014001commercial_costs_pct1actuals0.014405104060297685
25082025-08-015000contribution_margin1actuals14588874.315891301
25082025-08-015001contribution_margin_pct1actuals0.9603402206991939
25082025-08-016001fixed_costs_pct1actuals0.019286075476373746
25082025-08-017000total_cost1actuals1114300.8450182
25082025-08-017001total_cost_pct1actuals0.07335095883747757
25082025-08-018000ebitda1actuals14588874.315891301
25082025-08-018001ebitda_pct1actuals0.9603402206991939
25092025-09-012001cogs_pct1actuals0.03949496393804421
25092025-09-013000gross_margin1actuals15408614.5026344
25092025-09-013001gross_margin_pct1actuals0.9605050360619558
25092025-09-014001commercial_costs_pct1actuals0.014846039102946925
25092025-09-015000contribution_margin1actuals15408614.5026344
25092025-09-015001contribution_margin_pct1actuals0.9605050360619558
25092025-09-016001fixed_costs_pct1actuals0.018383485286009988
25092025-09-017000total_cost1actuals1166660.8330618
25092025-09-017001total_cost_pct1actuals0.07272448832700112
25092025-09-018000ebitda1actuals15408614.5026344
25092025-09-018001ebitda_pct1actuals0.9605050360619558
25102025-10-012001cogs_pct1actuals0.03595720241617259
25102025-10-013000gross_margin1actuals17402616.5217471
25102025-10-013001gross_margin_pct1actuals0.9640427975838275
25102025-10-014001commercial_costs_pct1actuals0.012124725661845009
25102025-10-015000contribution_margin1actuals17402616.5217471
25102025-10-015001contribution_margin_pct1actuals0.9640427975838275
25102025-10-016001fixed_costs_pct1actuals0.016654682742416126
25102025-10-017000total_cost1actuals1168606.2235506
25102025-10-017001total_cost_pct1actuals0.06473661082043372
25102025-10-018000ebitda1actuals17402616.5217471
25102025-10-018001ebitda_pct1actuals0.9640427975838275
25112025-11-012001cogs_pct1actuals0.03791045886011395
25112025-11-013000gross_margin1actuals17541526.571902905
25112025-11-013001gross_margin_pct1actuals0.9620895411398861
25112025-11-014001commercial_costs_pct1actuals0.011866208536970933
25112025-11-015000contribution_margin1actuals17541526.571902905
25112025-11-015001contribution_margin_pct1actuals0.9620895411398861
25112025-11-016001fixed_costs_pct1actuals0.016249428274186684
25112025-11-017000total_cost1actuals1203836.5059913
25112025-11-017001total_cost_pct1actuals0.06602609567127157
25112025-11-018000ebitda1actuals17541526.571902905
25112025-11-018001ebitda_pct1actuals0.9620895411398861
25122025-12-012001cogs_pct1actuals0.04131320106930666
25122025-12-013000gross_margin1actuals17725344.466278803
25122025-12-013001gross_margin_pct1actuals0.9586867989306933
25122025-12-014001commercial_costs_pct1actuals0.01158015774888897
25122025-12-015000contribution_margin1actuals17725344.466278803
25122025-12-015001contribution_margin_pct1actuals0.9586867989306933
25122025-12-016001fixed_costs_pct1actuals0.016655429912444116
25122025-12-017000total_cost1actuals1285900.9207575
25122025-12-017001total_cost_pct1actuals0.06954878873063974
25122025-12-018000ebitda1actuals17725344.466278803
25122025-12-018001ebitda_pct1actuals0.9586867989306933
26012026-01-012001cogs_pct1actuals0.04371827468027312
26012026-01-013000gross_margin1actuals16431531.6448067
26012026-01-013001gross_margin_pct1actuals0.9562817253197269
26012026-01-014001commercial_costs_pct1actuals0.013726551963983579
26012026-01-015000contribution_margin1actuals16431531.6448067
26012026-01-015001contribution_margin_pct1actuals0.9562817253197269
26012026-01-016001fixed_costs_pct1actuals0.01843215265276613
26012026-01-017000total_cost1actuals1303773.7242281002
26012026-01-017001total_cost_pct1actuals0.07587697929702282
26012026-01-018000ebitda1actuals16431531.6448067
26012026-01-018001ebitda_pct1actuals0.9562817253197269
26022026-02-012001cogs_pct1actuals0.04752036975589405
26022026-02-013000gross_margin1actuals16074487.234050296
26022026-02-013001gross_margin_pct1actuals0.952479630244106
26022026-02-014001commercial_costs_pct1actuals0.014384544113638103
26022026-02-015000contribution_margin1actuals16074487.234050296
26022026-02-015001contribution_margin_pct1actuals0.952479630244106
26022026-02-016001fixed_costs_pct1actuals0.017818412374925187
26022026-02-017000total_cost1actuals1345447.7652652
26022026-02-017001total_cost_pct1actuals0.07972332624445734
26022026-02-018000ebitda1actuals16074487.234050296
26022026-02-018001ebitda_pct1actuals0.952479630244106
26032026-03-012001cogs_pct1actuals0.04781556191741597
26032026-03-013000gross_margin1actuals16125940.460447099
26032026-03-013001gross_margin_pct1actuals0.952184438082584
26032026-03-014001commercial_costs_pct1actuals0.014621141635003441
26032026-03-015000contribution_margin1actuals16125940.460447099
26032026-03-015001contribution_margin_pct1actuals0.952184438082584
26032026-03-016001fixed_costs_pct1actuals0.01844427945437391
26032026-03-017000total_cost1actuals1369778.6523128
26032026-03-017001total_cost_pct1actuals0.08088098300679332
26032026-03-018000ebitda1actuals16125940.460447099
26032026-03-018001ebitda_pct1actuals0.952184438082584
26042026-04-012001cogs_pct1actuals0.03648827086577764
26042026-04-013000gross_margin1actuals19658491.926577304
26042026-04-013001gross_margin_pct1actuals0.9635117291342223
26042026-04-014001commercial_costs_pct1actuals0.011400858622710196
26042026-04-015000contribution_margin1actuals19658491.926577304
26042026-04-015001contribution_margin_pct1actuals0.9635117291342223
26042026-04-016001fixed_costs_pct1actuals0.015735496093986473
26042026-04-017000total_cost1actuals1298130.734193
26042026-04-017001total_cost_pct1actuals0.06362462558247431
26042026-04-018000ebitda1actuals19658491.926577304
26042026-04-018001ebitda_pct1actuals0.9635117291342223
26052026-05-012001cogs_pct1actuals0.03609463761642161
26052026-05-013000gross_margin1actuals19899156.709757198
26052026-05-013001gross_margin_pct1actuals0.9639053623835783
26052026-05-014001commercial_costs_pct1actuals0.011719621770407031
26052026-05-015000contribution_margin1actuals19899156.709757198
26052026-05-015001contribution_margin_pct1actuals0.9639053623835783
26052026-05-016001fixed_costs_pct1actuals0.014993613763194791
26052026-05-017000total_cost1actuals1296624.9169194999
26052026-05-017001total_cost_pct1actuals0.06280787315002342
26052026-05-018000ebitda1actuals19899156.709757198
26052026-05-018001ebitda_pct1actuals0.9639053623835783
26062026-06-012001cogs_pct1actuals0.03666258319181645
26062026-06-013000gross_margin1actuals19766008.330211602
26062026-06-013001gross_margin_pct1actuals0.9633374168081835
26062026-06-014001commercial_costs_pct1actuals0.012174296300777416
26062026-06-015000contribution_margin1actuals19766008.330211602
26062026-06-015001contribution_margin_pct1actuals0.9633374168081835
26062026-06-016001fixed_costs_pct1actuals0.014887015286440111
26062026-06-017000total_cost1actuals1307503.4905311
26062026-06-017001total_cost_pct1actuals0.06372389477903398
26062026-06-018000ebitda1actuals19766008.330211602
26062026-06-018001ebitda_pct1actuals0.9633374168081835
26072026-07-012001cogs_pct1actuals0.040921226500759744
26072026-07-013000gross_margin1actuals17296146.2430692
26072026-07-013001gross_margin_pct1actuals0.9590787734992403
26072026-07-014001commercial_costs_pct1actuals0.01413645869503808
26072026-07-015000contribution_margin1actuals17296146.2430692
26072026-07-015001contribution_margin_pct1actuals0.9590787734992403
26072026-07-016001fixed_costs_pct1actuals0.016953626172582177
26072026-07-017000total_cost1actuals1298660.9723812002
26072026-07-017001total_cost_pct1actuals0.07201131136838
26072026-07-018000ebitda1actuals17296146.2430692
26072026-07-018001ebitda_pct1actuals0.9590787734992403
26082026-08-012001cogs_pct1actuals0.0422209362475013
26082026-08-013000gross_margin1actuals17332730.6525093
26082026-08-013001gross_margin_pct1actuals0.9577790637524987
26082026-08-014001commercial_costs_pct1actuals0.012300285095528425
26082026-08-015000contribution_margin1actuals17332730.6525093
26082026-08-015001contribution_margin_pct1actuals0.9577790637524987
26082026-08-016001fixed_costs_pct1actuals0.01728285049542651
26082026-08-017000total_cost1actuals1299423.5142845
26082026-08-017001total_cost_pct1actuals0.07180407183845622
26082026-08-018000ebitda1actuals17332730.6525093
26082026-08-018001ebitda_pct1actuals0.9577790637524987
26092026-09-012001cogs_pct1actuals0.04016963262213357
26092026-09-013000gross_margin1actuals20494202.7878817
26092026-09-013001gross_margin_pct1actuals0.9598303673778664
26092026-09-014001commercial_costs_pct1actuals0.011290584040981164
26092026-09-015000contribution_margin1actuals20494202.7878817
26092026-09-015001contribution_margin_pct1actuals0.9598303673778664
26092026-09-016001fixed_costs_pct1actuals0.015855520536831594
26092026-09-017000total_cost1actuals1437318.9428881
26092026-09-017001total_cost_pct1actuals0.06731573719994632
26092026-09-018000ebitda1actuals20494202.7878817
26092026-09-018001ebitda_pct1actuals0.9598303673778664
26102026-10-012001cogs_pct1actuals0.04078786528936898
26102026-10-013000gross_margin1actuals19046702.9917872
26102026-10-013001gross_margin_pct1actuals0.9592121347106309
26102026-10-014001commercial_costs_pct1actuals0.011200689860331894
26102026-10-015000contribution_margin1actuals19046702.9917872
26102026-10-015001contribution_margin_pct1actuals0.9592121347106309
26102026-10-016001fixed_costs_pct1actuals0.01695670597689149
26102026-10-017000total_cost1actuals1369019.2855677
26102026-10-017001total_cost_pct1actuals0.06894526112659236
26102026-10-018000ebitda1actuals19046702.9917872
26102026-10-018001ebitda_pct1actuals0.9592121347106309
26112026-11-012001cogs_pct1actuals0.0424105183289093
26112026-11-013000gross_margin1actuals19309102.993757397
26112026-11-013001gross_margin_pct1actuals0.9575894816710907
26112026-11-014001commercial_costs_pct1actuals0.011874673917993364
26112026-11-015000contribution_margin1actuals19309102.993757397
26112026-11-015001contribution_margin_pct1actuals0.9575894816710907
26112026-11-016001fixed_costs_pct1actuals0.015770496311381575
26112026-11-017000total_cost1actuals1412622.5606716997
26112026-11-017001total_cost_pct1actuals0.07005568855828423
26112026-11-018000ebitda1actuals19309102.993757397
26112026-11-018001ebitda_pct1actuals0.9575894816710907
26122026-12-012001cogs_pct1actuals0.03711182615884213
26122026-12-013000gross_margin1actuals21618256.5141513
26122026-12-013001gross_margin_pct1actuals0.9628881738411579
26122026-12-014001commercial_costs_pct1actuals0.010233956316759643
26122026-12-015000contribution_margin1actuals21618256.5141513
26122026-12-015001contribution_margin_pct1actuals0.9628881738411579
26122026-12-016001fixed_costs_pct1actuals0.014033021704155003
26122026-12-017000total_cost1actuals1378044.4804888999
26122026-12-017001total_cost_pct1actuals0.061378804179756774
26122026-12-018000ebitda1actuals21618256.5141513
26122026-12-018001ebitda_pct1actuals0.9628881738411579
27012027-01-012001cogs_pct1actuals0.03950871778546683
27012027-01-013000gross_margin1actuals18445165.561592396
27012027-01-013001gross_margin_pct1actuals0.9604912822145332
27012027-01-014001commercial_costs_pct1actuals0.012810667628396985
27012027-01-015000contribution_margin1actuals18445165.561592396
27012027-01-015001contribution_margin_pct1actuals0.9604912822145332
27012027-01-016001fixed_costs_pct1actuals0.017698381418156866
27012027-01-017000total_cost1actuals1344613.2467667
27012027-01-017001total_cost_pct1actuals0.07001776683202067
27012027-01-018000ebitda1actuals18445165.561592396
27012027-01-018001ebitda_pct1actuals0.9604912822145332
27022027-02-012001cogs_pct1actuals0.041389636218873344
27022027-02-013000gross_margin1actuals19941194.7013127
27022027-02-013001gross_margin_pct1actuals0.9586103637811266
27022027-02-014001commercial_costs_pct1actuals0.012250019300050858
27022027-02-015000contribution_margin1actuals19941194.7013127
27022027-02-015001contribution_margin_pct1actuals0.9586103637811266
27022027-02-016001fixed_costs_pct1actuals0.015333260055141264
27022027-02-017000total_cost1actuals1434787.6786503
27022027-02-017001total_cost_pct1actuals0.06897291557406547
27022027-02-018000ebitda1actuals19941194.7013127
27022027-02-018001ebitda_pct1actuals0.9586103637811266
27032027-03-012001cogs_pct1actuals0.042662791798485644
27032027-03-013000gross_margin1actuals20873733.958198898
27032027-03-013001gross_margin_pct1actuals0.9573372082015144
27032027-03-014001commercial_costs_pct1actuals0.011485006701173174
27032027-03-015000contribution_margin1actuals20873733.958198898
27032027-03-015001contribution_margin_pct1actuals0.9573372082015144
27032027-03-016001fixed_costs_pct1actuals0.015245924868471579
27032027-03-017000total_cost1actuals1513057.371578
27032027-03-017001total_cost_pct1actuals0.06939372336813039
27032027-03-018000ebitda1actuals20873733.958198898
27032027-03-018001ebitda_pct1actuals0.9573372082015144
27042027-04-012001cogs_pct1actuals0.04031241069645993
27042027-04-013000gross_margin1actuals22398874.547698103
27042027-04-013001gross_margin_pct1actuals0.95968758930354
27042027-04-014001commercial_costs_pct1actuals0.010718821448170242
27042027-04-015000contribution_margin1actuals22398874.547698103
27042027-04-015001contribution_margin_pct1actuals0.95968758930354
27042027-04-016001fixed_costs_pct1actuals0.014658965877171746
27042027-04-017000total_cost1actuals1533193.2192346
27042027-04-017001total_cost_pct1actuals0.06569019802180191
27042027-04-018000ebitda1actuals22398874.547698103
27042027-04-018001ebitda_pct1actuals0.95968758930354
27052027-05-012001cogs_pct1actuals0.038736139709493016
27052027-05-013000gross_margin1actuals21658839.0267655
27052027-05-013001gross_margin_pct1actuals0.9612638602905069
27052027-05-014001commercial_costs_pct1actuals0.011297218687598925
27052027-05-015000contribution_margin1actuals21658839.0267655
27052027-05-015001contribution_margin_pct1actuals0.9612638602905069
27052027-05-016001fixed_costs_pct1actuals0.014056098606380699
27052027-05-017000total_cost1actuals1444039.7583776
27052027-05-017001total_cost_pct1actuals0.06408945700347264
27052027-05-018000ebitda1actuals21658839.0267655
27052027-05-018001ebitda_pct1actuals0.9612638602905069
27062027-06-012001cogs_pct1actuals0.04140218785305856
27062027-06-013000gross_margin1actuals20711609.1580518
27062027-06-013001gross_margin_pct1actuals0.9585978121469414
27062027-06-014001commercial_costs_pct1actuals0.011783953118257227
27062027-06-015000contribution_margin1actuals20711609.1580518
27062027-06-015001contribution_margin_pct1actuals0.9585978121469414
27062027-06-016001fixed_costs_pct1actuals0.014794736131208165
27062027-06-017000total_cost1actuals1468805.1015009
27062027-06-017001total_cost_pct1actuals0.06798087710252396
27062027-06-018000ebitda1actuals20711609.1580518
27062027-06-018001ebitda_pct1actuals0.9585978121469414
27072027-07-012001cogs_pct1actuals0.03895470814052439
27072027-07-013000gross_margin1actuals20754885.976688202
27072027-07-013001gross_margin_pct1actuals0.9610452918594756
27072027-07-014001commercial_costs_pct1actuals0.011201071935180577
27072027-07-015000contribution_margin1actuals20754885.976688202
27072027-07-015001contribution_margin_pct1actuals0.9610452918594756
27072027-07-016001fixed_costs_pct1actuals0.016179880627901946
27072027-07-017000total_cost1actuals1432595.4101785999
27072027-07-017001total_cost_pct1actuals0.06633566070360691
27072027-07-018000ebitda1actuals20754885.976688202
27072027-07-018001ebitda_pct1actuals0.9610452918594756
27082027-08-012001cogs_pct1actuals0.039406712939514754
27082027-08-013000gross_margin1actuals22153103.8230641
27082027-08-013001gross_margin_pct1actuals0.9605932870604852
27082027-08-014001commercial_costs_pct1actuals0.010371738970338194
27082027-08-015000contribution_margin1actuals22153103.8230641
27082027-08-015001contribution_margin_pct1actuals0.9605932870604852
27082027-08-016001fixed_costs_pct1actuals0.014837232736088399
27082027-08-017000total_cost1actuals1490160.2893148
27082027-08-017001total_cost_pct1actuals0.06461568464594133
27082027-08-018000ebitda1actuals22153103.8230641
27082027-08-018001ebitda_pct1actuals0.9605932870604852
27092027-09-012001cogs_pct1actuals0.037246097966238276
27092027-09-013000gross_margin1actuals22175709.471718
27092027-09-013001gross_margin_pct1actuals0.9627539020337617
27092027-09-014001commercial_costs_pct1actuals0.010552014906461796
27092027-09-015000contribution_margin1actuals22175709.471718
27092027-09-015001contribution_margin_pct1actuals0.9627539020337617
27092027-09-016001fixed_costs_pct1actuals0.013488228782490425
27092027-09-017000total_cost1actuals1411646.4282918
27092027-09-017001total_cost_pct1actuals0.06128634165519049
27092027-09-018000ebitda1actuals22175709.471718
27092027-09-018001ebitda_pct1actuals0.9627539020337617
27102027-10-012001cogs_pct1actuals0.03931925520672954
27102027-10-013000gross_margin1actuals20721404.234644502
27102027-10-013001gross_margin_pct1actuals0.9606807447932706
27102027-10-014001commercial_costs_pct1actuals0.011662820748073134
27102027-10-015000contribution_margin1actuals20721404.234644502
27102027-10-015001contribution_margin_pct1actuals0.9606807447932706
27102027-10-016001fixed_costs_pct1actuals0.014458441329930325
27102027-10-017000total_cost1actuals1411519.2995493999
27102027-10-017001total_cost_pct1actuals0.06544051728473299
27102027-10-018000ebitda1actuals20721404.234644502
27102027-10-018001ebitda_pct1actuals0.9606807447932706
27112027-11-012001cogs_pct1actuals0.03622677418576975
27112027-11-013000gross_margin1actuals22652263.0322613
27112027-11-013001gross_margin_pct1actuals0.9637732258142303
27112027-11-014001commercial_costs_pct1actuals0.01019013870837094
27112027-11-015000contribution_margin1actuals22652263.0322613
27112027-11-015001contribution_margin_pct1actuals0.9637732258142303
27112027-11-016001fixed_costs_pct1actuals0.01451951626326898
27112027-11-017000total_cost1actuals1432233.2106230003
27112027-11-017001total_cost_pct1actuals0.060936429157409676
27112027-11-018000ebitda1actuals22652263.0322613
27112027-11-018001ebitda_pct1actuals0.9637732258142303
27122027-12-012001cogs_pct1actuals0.046480376529207806
27122027-12-013000gross_margin1actuals20634708.223994397
27122027-12-013001gross_margin_pct1actuals0.9535196234707922
27122027-12-014001commercial_costs_pct1actuals0.01092431937878633
27122027-12-015000contribution_margin1actuals20634708.223994397
27122027-12-015001contribution_margin_pct1actuals0.9535196234707922
27122027-12-016001fixed_costs_pct1actuals0.015088624063884289
27122027-12-017000total_cost1actuals1568796.7703940999
27122027-12-017001total_cost_pct1actuals0.07249331997187843
27122027-12-018000ebitda1actuals20634708.223994397
27122027-12-018001ebitda_pct1actuals0.9535196234707922
25012025-01-012001cogs_pct2budget0.04003333111125925
25012025-01-013000gross_margin2budget14400460.0
25012025-01-013001gross_margin_pct2budget0.9599666688887407
25012025-01-014001commercial_costs_pct2budget0.015155256316245584
25012025-01-015000contribution_margin2budget14400460.0
25012025-01-015001contribution_margin_pct2budget0.9599666688887407
25012025-01-016001fixed_costs_pct2budget0.019961669222051864
25012025-01-017000total_cost2budget1127329.0
25012025-01-017001total_cost_pct2budget0.0751502566495567
25012025-01-018000ebitda2budget14400460.0
25012025-01-018001ebitda_pct2budget0.9599666688887407
25022025-02-012001cogs_pct2budget0.04003290556103981
25022025-02-013000gross_margin2budget14586700.0
25022025-02-013001gross_margin_pct2budget0.9599670944389602
25022025-02-014001commercial_costs_pct2budget0.014961763738071733
25022025-02-015000contribution_margin2budget14586700.0
25022025-02-015001contribution_margin_pct2budget0.9599670944389602
25022025-02-016001fixed_costs_pct2budget0.01970681145113524
25022025-02-017000total_cost2budget1135089.0
25022025-02-017001total_cost_pct2budget0.0747014807502468
25022025-02-018000ebitda2budget14586700.0
25022025-02-018001ebitda_pct2budget0.9599670944389602
25032025-03-012001cogs_pct2budget0.040032378877154697
25032025-03-013000gross_margin2budget14830822.23
25032025-03-013001gross_margin_pct2budget0.9599676211228453
25032025-03-014001commercial_costs_pct2budget0.014715494223583054
25032025-03-015000contribution_margin2budget14830822.23
25032025-03-015001contribution_margin_pct2budget0.9599676211228453
25032025-03-016001fixed_costs_pct2budget0.01938243880542626
25032025-03-017000total_cost2budget1145261.0
25032025-03-017001total_cost_pct2budget0.07413031190616401
25032025-03-018000ebitda2budget14830822.23
25032025-03-018001ebitda_pct2budget0.9599676211228453
25042025-04-012001cogs_pct2budget0.04003183109250565
25042025-04-013000gross_margin2budget15075223.21
25042025-04-013001gross_margin_pct2budget0.9599681689074944
25042025-04-014001commercial_costs_pct2budget0.014476933465723815
25042025-04-015000contribution_margin2budget15075223.21
25042025-04-015001contribution_margin_pct2budget0.9599681689074944
25042025-04-016001fixed_costs_pct2budget0.01906821970953123
25042025-04-017000total_cost2budget1155444.0
25042025-04-017001total_cost_pct2budget0.07357698426776069
25042025-04-018000ebitda2budget15075223.21
25042025-04-018001ebitda_pct2budget0.9599681689074944
25052025-05-012001cogs_pct2budget0.04003133681995907
25052025-05-013000gross_margin2budget15319897.59
25052025-05-013001gross_margin_pct2budget0.9599686631800409
25052025-05-014001commercial_costs_pct2budget0.01424572941691598
25052025-05-015000contribution_margin2budget15319897.59
25052025-05-015001contribution_margin_pct2budget0.9599686631800409
25052025-05-016001fixed_costs_pct2budget0.01876369046576292
25052025-05-017000total_cost2budget1165639.0
25052025-05-017001total_cost_pct2budget0.07304075670263797
25052025-05-018000ebitda2budget15319897.59
25052025-05-018001ebitda_pct2budget0.9599686631800409
25062025-06-012001cogs_pct2budget0.04003084233018377
25062025-06-013000gross_margin2budget15564842.14
25062025-06-013001gross_margin_pct2budget0.9599691576698163
25062025-06-014001commercial_costs_pct2budget0.01402155101980923
25062025-06-015000contribution_margin2budget15564842.14
25062025-06-015001contribution_margin_pct2budget0.9599691576698163
25062025-06-016001fixed_costs_pct2budget0.018468415023606407
25062025-06-017000total_cost2budget1175845.0
25062025-06-017001total_cost_pct2budget0.07252080837359941
25062025-06-018000ebitda2budget15564842.14
25062025-06-018001ebitda_pct2budget0.9599691576698163
25072025-07-012001cogs_pct2budget0.040030357624063415
25072025-07-013000gross_margin2budget15810052.76
25072025-07-013001gross_margin_pct2budget0.9599696423759366
25072025-07-014001commercial_costs_pct2budget0.013804086658614979
25072025-07-015000contribution_margin2budget15810052.76
25072025-07-015001contribution_margin_pct2budget0.9599696423759366
25072025-07-016001fixed_costs_pct2budget0.018181982939901482
25072025-07-017000total_cost2budget1186062.0
25072025-07-017001total_cost_pct2budget0.07201642722257988
25072025-07-018000ebitda2budget15810052.76
25072025-07-018001ebitda_pct2budget0.9599696423759366
25082025-08-012001cogs_pct2budget0.040029927577206706
25082025-08-013000gross_margin2budget16050690.28
25082025-08-013001gross_margin_pct2budget0.9599700724227933
25082025-08-014001commercial_costs_pct2budget0.013597137091158644
25082025-08-015000contribution_margin2budget16050690.28
25082025-08-015001contribution_margin_pct2budget0.9599700724227933
25082025-08-016001fixed_costs_pct2budget0.017909400363598775
25082025-08-017000total_cost2budget1196089.0
25082025-08-017001total_cost_pct2budget0.07153646503196412
25082025-08-018000ebitda2budget16050690.28
25082025-08-018001ebitda_pct2budget0.9599700724227933
25092025-09-012001cogs_pct2budget0.0400294777918963
25092025-09-013000gross_margin2budget16291581.370000001
25092025-09-013001gross_margin_pct2budget0.9599705222081037
25092025-09-014001commercial_costs_pct2budget0.01339609295404324
25092025-09-015000contribution_margin2budget16291581.370000001
25092025-09-015001contribution_margin_pct2budget0.9599705222081037
25092025-09-016001fixed_costs_pct2budget0.01764459609500791
25092025-09-017000total_cost2budget1206126.0
25092025-09-017001total_cost_pct2budget0.07107016684094745
25092025-09-018000ebitda2budget16291581.370000001
25092025-09-018001ebitda_pct2budget0.9599705222081037
25102025-10-012001cogs_pct2budget0.04002901754221072
25102025-10-013000gross_margin2budget16532722.420000002
25102025-10-013001gross_margin_pct2budget0.9599709824577892
25102025-10-014001commercial_costs_pct2budget0.013200708116400083
25102025-10-015000contribution_margin2budget16532722.420000002
25102025-10-015001contribution_margin_pct2budget0.9599709824577892
25102025-10-016001fixed_costs_pct2budget0.01738724594409979
25102025-10-017000total_cost2budget1216173.0
25102025-10-017001total_cost_pct2budget0.0706169716027106
25102025-10-018000ebitda2budget16532722.420000002
25102025-10-018001ebitda_pct2budget0.9599709824577892
25112025-11-012001cogs_pct2budget0.040028612524249746
25112025-11-013000gross_margin2budget16774108.940000001
25112025-11-013001gross_margin_pct2budget0.9599713874757503
25112025-11-014001commercial_costs_pct2budget0.013010749834458088
25112025-11-015000contribution_margin2budget16774108.940000001
25112025-11-015001contribution_margin_pct2budget0.9599713874757503
25112025-11-016001fixed_costs_pct2budget0.017137043353593243
25112025-11-017000total_cost2budget1226231.0
25112025-11-017001total_cost_pct2budget0.07017640571230108
25112025-11-018000ebitda2budget16774108.940000001
25112025-11-018001ebitda_pct2budget0.9599713874757503
25122025-12-012001cogs_pct2budget0.040028211756821475
25122025-12-013000gross_margin2budget17015738.49
25122025-12-013001gross_margin_pct2budget0.9599717882431785
25122025-12-014001commercial_costs_pct2budget0.012825997905093403
25122025-12-015000contribution_margin2budget17015738.49
25122025-12-015001contribution_margin_pct2budget0.9599717882431785
25122025-12-016001fixed_costs_pct2budget0.016893698284057176
25122025-12-017000total_cost2budget1236299.0
25122025-12-017001total_cost_pct2budget0.06974790794597205
25122025-12-018000ebitda2budget17015738.49
25122025-12-018001ebitda_pct2budget0.9599717882431785
26012026-01-012001cogs_pct2budget0.04002780598366949
26012026-01-013000gross_margin2budget17252746.68
26012026-01-013001gross_margin_pct2budget0.9599721940163305
26012026-01-014001commercial_costs_pct2budget0.01328234203100386
26012026-01-015000contribution_margin2budget17252746.68
26012026-01-015001contribution_margin_pct2budget0.9599721940163305
26012026-01-016001fixed_costs_pct2budget0.017494752742652952
26012026-01-017000total_cost2budget1272515.0
26012026-01-017001total_cost_pct2budget0.0708049007573263
26012026-01-018000ebitda2budget17252746.68
26012026-01-018001ebitda_pct2budget0.9599721940163305
26022026-02-012001cogs_pct2budget0.04002743018696012
26022026-02-013000gross_margin2budget17489986.06
26022026-02-013001gross_margin_pct2budget0.9599725698130399
26022026-02-014001commercial_costs_pct2budget0.013102181516845097
26022026-02-015000contribution_margin2budget17489986.06
26022026-02-015001contribution_margin_pct2budget0.9599725698130399
26022026-02-016001fixed_costs_pct2budget0.017257455461658407
26022026-02-017000total_cost2budget1282400.0
26022026-02-017001total_cost_pct2budget0.07038706716546363
26022026-02-018000ebitda2budget17489986.06
26022026-02-018001ebitda_pct2budget0.9599725698130399
26032026-03-012001cogs_pct2budget0.040027089745601825
26032026-03-013000gross_margin2budget17727453.6
26032026-03-013001gross_margin_pct2budget0.9599729102543981
26032026-03-014001commercial_costs_pct2budget0.012926676245969578
26032026-03-015000contribution_margin2budget17727453.6
26032026-03-015001contribution_margin_pct2budget0.9599729102543981
26032026-03-016001fixed_costs_pct2budget0.01702628980489151
26032026-03-017000total_cost2budget1292295.0
26032026-03-017001total_cost_pct2budget0.06998005579646292
26032026-03-018000ebitda2budget17727453.6
26032026-03-018001ebitda_pct2budget0.9599729102543981
26042026-04-012001cogs_pct2budget0.040026736123510334
26042026-04-013000gross_margin2budget17965147.36
26042026-04-013001gross_margin_pct2budget0.9599732638764896
26042026-04-014001commercial_costs_pct2budget0.012755650325290992
26042026-04-015000contribution_margin2budget17965147.36
26042026-04-015001contribution_margin_pct2budget0.9599732638764896
26042026-04-016001fixed_costs_pct2budget0.016801024095886855
26042026-04-017000total_cost2budget1302199.0
26042026-04-017001total_cost_pct2budget0.06958341054468818
26042026-04-018000ebitda2budget17965147.36
26042026-04-018001ebitda_pct2budget0.9599732638764896
26052026-05-012001cogs_pct2budget0.040026375950576794
26052026-05-013000gross_margin2budget18203064.45
26052026-05-013001gross_margin_pct2budget0.9599736240494232
26052026-05-014001commercial_costs_pct2budget0.01258893657018755
26052026-05-015000contribution_margin2budget18203064.45
26052026-05-015001contribution_margin_pct2budget0.9599736240494232
26052026-05-016001fixed_costs_pct2budget0.016581438128477954
26052026-05-017000total_cost2budget1312112.0
26052026-05-017001total_cost_pct2budget0.0691967506492423
26052026-05-018000ebitda2budget18203064.45
26052026-05-018001ebitda_pct2budget0.9599736240494232
26062026-06-012001cogs_pct2budget0.04002605390194143
26062026-06-013000gross_margin2budget18436314.86
26062026-06-013001gross_margin_pct2budget0.9599739460980585
26062026-06-014001commercial_costs_pct2budget0.012429669506141194
26062026-06-015000contribution_margin2budget18436314.86
26062026-06-015001contribution_margin_pct2budget0.9599739460980585
26062026-06-016001fixed_costs_pct2budget0.016371660523065042
26062026-06-017000total_cost2budget1321831.0
26062026-06-017001total_cost_pct2budget0.06882738393114766
26062026-06-018000ebitda2budget18436314.86
26062026-06-018001ebitda_pct2budget0.9599739460980585
26072026-07-012001cogs_pct2budget0.04002569476961045
26072026-07-013000gross_margin2budget18669779.07
26072026-07-013001gross_margin_pct2budget0.9599743052303895
26072026-07-014001commercial_costs_pct2budget0.012274241997774039
26072026-07-015000contribution_margin2budget18669779.07
26072026-07-015001contribution_margin_pct2budget0.9599743052303895
26072026-07-016001fixed_costs_pct2budget0.016166940164114574
26072026-07-017000total_cost2budget1331558.0
26072026-07-017001total_cost_pct2budget0.06846687693149907
26072026-07-018000ebitda2budget18669779.07
26072026-07-018001ebitda_pct2budget0.9599743052303895
26082026-08-012001cogs_pct2budget0.040025406668547356
26082026-08-013000gross_margin2budget18903452.54
26082026-08-013001gross_margin_pct2budget0.9599745933314526
26082026-08-014001commercial_costs_pct2budget0.012122518605447179
26082026-08-015000contribution_margin2budget18903452.54
26082026-08-015001contribution_margin_pct2budget0.9599745933314526
26082026-08-016001fixed_costs_pct2budget0.015967098658163356
26082026-08-017000total_cost2budget1341295.0
26082026-08-017001total_cost_pct2budget0.06811502393215789
26082026-08-018000ebitda2budget18903452.54
26082026-08-018001ebitda_pct2budget0.9599745933314526
26092026-09-012001cogs_pct2budget0.04002509172102083
26092026-09-013000gross_margin2budget19137334.76
26092026-09-013001gross_margin_pct2budget0.9599749082789791
26092026-09-014001commercial_costs_pct2budget0.011974370160680183
26092026-09-015000contribution_margin2budget19137334.76
26092026-09-015001contribution_margin_pct2budget0.9599749082789791
26092026-09-016001fixed_costs_pct2budget0.015771965871764895
26092026-09-017000total_cost2budget1351040.0
26092026-09-017001total_cost_pct2budget0.06777142775346591
26092026-09-018000ebitda2budget19137334.76
26092026-09-018001ebitda_pct2budget0.9599749082789791
26102026-10-012001cogs_pct2budget0.04002475576907043
26102026-10-013000gross_margin2budget19371423.28
26102026-10-013001gross_margin_pct2budget0.9599752442309296
26102026-10-014001commercial_costs_pct2budget0.011829673389948952
26102026-10-015000contribution_margin2budget19371423.28
26102026-10-015001contribution_margin_pct2budget0.9599752442309296
26102026-10-016001fixed_costs_pct2budget0.015581379435977117
26102026-10-017000total_cost2budget1360793.0
26102026-10-017001total_cost_pct2budget0.0674358085949965
26102026-10-018000ebitda2budget19371423.28
26102026-10-018001ebitda_pct2budget0.9599752442309296
26112026-11-012001cogs_pct2budget0.0400245021875728
26112026-11-013000gross_margin2budget19605713.71
26112026-11-013001gross_margin_pct2budget0.9599754978124272
26112026-11-014001commercial_costs_pct2budget0.011688310582486828
26112026-11-015000contribution_margin2budget19605713.71
26112026-11-015001contribution_margin_pct2budget0.9599754978124272
26112026-11-016001fixed_costs_pct2budget0.015395184308808705
26112026-11-017000total_cost2budget1370556.0
26112026-11-017001total_cost_pct2budget0.06710799707886833
26112026-11-018000ebitda2budget19605713.71
26112026-11-018001ebitda_pct2budget0.9599754978124272
26122026-12-012001cogs_pct2budget0.0400241829810065
26122026-12-013000gross_margin2budget19835292.11
26122026-12-013001gross_margin_pct2budget0.9599758170189935
26122026-12-014001commercial_costs_pct2budget0.011553031130643529
26122026-12-015000contribution_margin2budget19835292.11
26122026-12-015001contribution_margin_pct2budget0.9599758170189935
26122026-12-016001fixed_costs_pct2budget0.015217001834992281
26122026-12-017000total_cost2budget1380121.0
26122026-12-017001total_cost_pct2budget0.06679421594664231
26122026-12-018000ebitda2budget19835292.11
26122026-12-018001ebitda_pct2budget0.9599758170189935
27012027-01-012001cogs_pct2budget0.04002391367662737
27012027-01-013000gross_margin2budget20065064.13
27012027-01-013001gross_margin_pct2budget0.9599760863233726
27012027-01-014001commercial_costs_pct2budget0.01199164899736215
27012027-01-015000contribution_margin2budget20065064.13
27012027-01-015001contribution_margin_pct2budget0.9599760863233726
27012027-01-016001fixed_costs_pct2budget0.015794893208881656
27012027-01-017000total_cost2budget1417349.0
27012027-01-017001total_cost_pct2budget0.06781045588287117
27012027-01-018000ebitda2budget20065064.13
27012027-01-018001ebitda_pct2budget0.9599760863233726
27022027-02-012001cogs_pct2budget0.04002364929974933
27022027-02-013000gross_margin2budget20295028.65
27022027-02-013001gross_margin_pct2budget0.9599763507002507
27022027-02-014001commercial_costs_pct2budget0.011855773971586108
27022027-02-015000contribution_margin2budget20295028.65
27022027-02-015001contribution_margin_pct2budget0.9599763507002507
27022027-02-016001fixed_costs_pct2budget0.015615924367952547
27022027-02-017000total_cost2budget1426931.0
27022027-02-017001total_cost_pct2budget0.06749534763928798
27022027-02-018000ebitda2budget20295028.65
27022027-02-018001ebitda_pct2budget0.9599763507002507
27032027-03-012001cogs_pct2budget0.04002339364194336
27032027-03-013000gross_margin2budget20525183.56
27032027-03-013001gross_margin_pct2budget0.9599766063580566
27032027-03-014001commercial_costs_pct2budget0.011722834818857773
27032027-03-015000contribution_margin2budget20525183.56
27032027-03-015001contribution_margin_pct2budget0.9599766063580566
27032027-03-016001fixed_costs_pct2budget0.015440822534911473
27032027-03-017000total_cost2budget1436521.0
27032027-03-017001total_cost_pct2budget0.06718705099571261
27032027-03-018000ebitda2budget20525183.56
27032027-03-018001ebitda_pct2budget0.9599766063580566
27042027-04-012001cogs_pct2budget0.04002310394489168
27042027-04-013000gross_margin2budget20755527.82
27042027-04-013001gross_margin_pct2budget0.9599768960551083
27042027-04-014001commercial_costs_pct2budget0.01159273862839941
27042027-04-015000contribution_margin2budget20755527.82
27042027-04-015001contribution_margin_pct2budget0.9599768960551083
27042027-04-016001fixed_costs_pct2budget0.01526946533160906
27042027-04-017000total_cost2budget1446118.0
27042027-04-017001total_cost_pct2budget0.06688530790490016
27042027-04-018000ebitda2budget20755527.82
27042027-04-018001ebitda_pct2budget0.9599768960551083
27052027-05-012001cogs_pct2budget0.0400228685085152
27052027-05-013000gross_margin2budget20981120.73
27052027-05-013001gross_margin_pct2budget0.9599771314914848
27052027-05-014001commercial_costs_pct2budget0.011468094160415386
27052027-05-015000contribution_margin2budget20981120.73
27052027-05-015001contribution_margin_pct2budget0.9599771314914848
27052027-05-016001fixed_costs_pct2budget0.015105288906722157
27052027-05-017000total_cost2budget1455518.0
27052027-05-017001total_cost_pct2budget0.06659625157565274
27052027-05-018000ebitda2budget20981120.73
27052027-05-018001ebitda_pct2budget0.9599771314914848
27062027-06-012001cogs_pct2budget0.040022614458167474
27062027-06-013000gross_margin2budget21206894.58
27062027-06-013001gross_margin_pct2budget0.9599773855418325
27062027-06-014001commercial_costs_pct2budget0.011346004993397418
27062027-06-015000contribution_margin2budget21206894.58
27062027-06-015001contribution_margin_pct2budget0.9599773855418325
27062027-06-016001fixed_costs_pct2budget0.014944478216262961
27062027-06-017000total_cost2budget1464925.0
27062027-06-017001total_cost_pct2budget0.06631309766782785
27062027-06-018000ebitda2budget21206894.58
27062027-06-018001ebitda_pct2budget0.9599773855418325
27072027-07-012001cogs_pct2budget0.040022390458969125
27072027-07-013000gross_margin2budget21432846.54
27072027-07-013001gross_margin_pct2budget0.9599776095410308
27072027-07-014001commercial_costs_pct2budget0.011226394379969824
27072027-07-015000contribution_margin2budget21432846.54
27072027-07-015001contribution_margin_pct2budget0.9599776095410308
27072027-07-016001fixed_costs_pct2budget0.014786932171832105
27072027-07-017000total_cost2budget1474340.0
27072027-07-017001total_cost_pct2budget0.06603571701077106
27072027-07-018000ebitda2budget21432846.54
27072027-07-018001ebitda_pct2budget0.9599776095410308
27082027-08-012001cogs_pct2budget0.04002215448203877
27082027-08-013000gross_margin2budget21658975.79
27082027-08-013001gross_margin_pct2budget0.9599778455179613
27082027-08-014001commercial_costs_pct2budget0.01110918860719819
27082027-08-015000contribution_margin2budget21658975.79
27082027-08-015001contribution_margin_pct2budget0.9599778455179613
27082027-08-016001fixed_costs_pct2budget0.014632553681867992
27082027-08-017000total_cost2budget1483762.0
27082027-08-017001total_cost_pct2budget0.06576389677110495
27082027-08-018000ebitda2budget21658975.79
27082027-08-018001ebitda_pct2budget0.9599778455179613
27092027-09-012001cogs_pct2budget0.04002195387574651
27092027-09-013000gross_margin2budget21885279.56
27092027-09-013001gross_margin_pct2budget0.9599780461242535
27092027-09-014001commercial_costs_pct2budget0.010994316828859988
27092027-09-015000contribution_margin2budget21885279.56
27092027-09-015001contribution_margin_pct2budget0.9599780461242535
27092027-09-016001fixed_costs_pct2budget0.014481249430720771
27092027-09-017000total_cost2budget1493192.0
27092027-09-017001total_cost_pct2budget0.06549752013532727
27092027-09-018000ebitda2budget21885279.56
27092027-09-018001ebitda_pct2budget0.9599780461242535
27102027-10-012001cogs_pct2budget0.040021703735151605
27102027-10-013000gross_margin2budget22111758.12
27102027-10-013001gross_margin_pct2budget0.9599782962648484
27102027-10-014001commercial_costs_pct2budget0.010881710932323771
27102027-10-015000contribution_margin2budget22111758.12
27102027-10-015001contribution_margin_pct2budget0.9599782962648484
27102027-10-016001fixed_costs_pct2budget0.014332929703311207
27102027-10-017000total_cost2budget1502628.0
27102027-10-017001total_cost_pct2budget0.06523634437078658
27102027-10-018000ebitda2budget22111758.12
27102027-10-018001ebitda_pct2budget0.9599782962648484
27112027-11-012001cogs_pct2budget0.04002148873273003
27112027-11-013000gross_margin2budget22333445.87
27112027-11-013001gross_margin_pct2budget0.95997851126727
27112027-11-014001commercial_costs_pct2budget0.010773698575542962
27112027-11-015000contribution_margin2budget22333445.87
27112027-11-015001contribution_margin_pct2budget0.95997851126727
27112027-11-016001fixed_costs_pct2budget0.014190660392312546
27112027-11-017000total_cost2budget1511865.0
27112027-11-017001total_cost_pct2budget0.06498584770058553
27112027-11-018000ebitda2budget22333445.87
27112027-11-018001ebitda_pct2budget0.95997851126727
27122027-12-012001cogs_pct2budget0.04002128081305316
27122027-12-013000gross_margin2budget22555299.85
27122027-12-013001gross_margin_pct2budget0.9599787191869469
27122027-12-014001commercial_costs_pct2budget0.010667730762648774
27122027-12-015000contribution_margin2budget22555299.85
27122027-12-015001contribution_margin_pct2budget0.9599787191869469
27122027-12-016001fixed_costs_pct2budget0.014051084068104704
27122027-12-017000total_cost2budget1521109.0
27122027-12-017001total_cost_pct2budget0.06474009564380663
27122027-12-018000ebitda2budget22555299.85
27122027-12-018001ebitda_pct2budget0.9599787191869469
{{config(materialised='view')}}

with pnl_rollup as (
    select * from {{ref('pnl_rollup')}}
),

base_and_gross as (
    select
        period,
        date,
        3000 as gl_id,
        'gross_margin' as gl_account,
        value_type_id,
        type,
        sum(case when gl_id = 1000 then amount else 0 end) - sum(case when gl_id = 2000 then amount else 0 end) as amount
    from pnl_rollup
    group by period, date, value_type_id, type

    UNION ALL

    select
        period,
        date,
        7000 as gl_id,
        'total_cost' as gl_account,
        value_type_id,
        type,
        sum(case when gl_id = 2000 then amount else 0 end) + sum(case when gl_id = 4000 then amount else 0 end) + sum(case when gl_id = 6000 then amount else 0 end)
    from pnl_rollup
    group by period, date, value_type_id, type
),

base_and_gross_and_contribution as (
    select * from base_and_gross

    UNION ALL

    select
        period,
        date,
        5000 as gl_id,
        'contribution_margin' as gl_account,
        value_type_id,
        type,
        sum(case when gl_id = 3000 then amount else 0 end) - sum(case when gl_id = 4000 then amount else 0 end) as amount
    from base_and_gross
    group by period, date, value_type_id, type
),

base_ebitda as (
    select * from base_and_gross_and_contribution

    UNION ALL

    select
        period,
        date,
        8000 as gl_id,
        'ebitda' as gl_account,
        value_type_id,
        type,
        sum(case when gl_id = 5000 then amount else 0 end) - sum(case when gl_id = 6000 then amount else 0 end) as amount
    from base_and_gross_and_contribution
    group by period, date, value_type_id, type
),

-- Combine with pnl_rollup for percentage calculations
combined as (
    select * from pnl_rollup
    UNION ALL
    select * from base_ebitda
)

select * from base_ebitda

UNION ALL

-- Calculate all percentages at the end
select
    period,
    date,
    3001 as gl_id,
    'gross_margin_pct' as gl_account,
    value_type_id,
    type,
    COALESCE(max(case when gl_id = 3000 then amount end) / nullif(max(case when gl_id = 1000 then amount end), 0), 0) as amount
from combined
group by period, date, value_type_id, type

UNION ALL

select
    period,
    date,
    2001 as gl_id,
    'cogs_pct' as gl_account,
    value_type_id,
    type,
    COALESCE(max(case when gl_id = 2000 then amount end) / nullif(max(case when gl_id = 1000 then amount end), 0), 0) as amount
from combined
group by period, date, value_type_id, type

UNION ALL

select
    period,
    date,
    4001 as gl_id,
    'commercial_costs_pct' as gl_account,
    value_type_id,
    type,
    COALESCE(max(case when gl_id = 4000 then amount end) / nullif(max(case when gl_id = 1000 then amount end), 0), 0) as amount
from combined
group by period, date, value_type_id, type

UNION ALL

select
    period,
    date,
    6001 as gl_id,
    'fixed_costs_pct' as gl_account,
    value_type_id,
    type,
    COALESCE(max(case when gl_id = 6000 then amount end) / nullif(max(case when gl_id = 1000 then amount end), 0), 0) as amount
from combined
group by period, date, value_type_id, type

UNION ALL

select
    period,
    date,
    7001 as gl_id,
    'total_cost_pct' as gl_account,
    value_type_id,
    type,
    COALESCE(max(case when gl_id = 7000 then amount end) / nullif(max(case when gl_id = 1000 then amount end), 0), 0) as amount
from combined
group by period, date, value_type_id, type

UNION ALL

select
    period,
    date,
    5001 as gl_id,
    'contribution_margin_pct' as gl_account,
    value_type_id,
    type,
    COALESCE(max(case when gl_id = 5000 then amount end) / nullif(max(case when gl_id = 1000 then amount end), 0), 0) as amount
from combined
group by period, date, value_type_id, type

UNION ALL

select
    period,
    date,
    8001 as gl_id,
    'ebitda_pct' as gl_account,
    value_type_id,
    type,
    COALESCE(max(case when gl_id = 8000 then amount end) / nullif(max(case when gl_id = 1000 then amount end), 0), 0) as amount
from combined
group by period, date, value_type_id, type

order by value_type_id, period, gl_id

Dependencies

On this page