Definire ogni passaggio una volta, sui suoi dati.
Ogni barra della cascata è una colonna formula in una view. Premi e trasporti vengono cercati nelle rispettive fonti, così la metà fuori fattura del percorso sta accanto alla fattura.
| 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' |