Define each step once, on your data.
Each bar in the waterfall is a formula column in a view. Rebates and freight are looked up from their own sources, so the off-invoice half of the walk sits beside the invoice.
| Name | Type | Formula |
|---|---|---|
| Deal Discount | Money | ('Customer Price' - 'Invoice Price') * 'Quantity' |
| Invoice Revenue | Money | 'Invoice Price' * 'Quantity' |
| Rebates | Money | 'Invoice Revenue' * coalesce(lookup(source="datasets", name="Rebate accruals", result="Accrual Rate", match_by=['Customer':'Customer']), 0) |
| Freight Allowed | Money | 'Invoice Revenue' * coalesce(lookup(source="datasets", name="Freight rates", result="Freight Rate", match_by=['Ship-to Region':'Region']), 0) |
| Pocket Revenue | Money | 'Invoice Revenue' - 'Rebates' - 'Freight Allowed' - 'Payment Terms' |