Porównanie kontraktu z tym, co zafakturowano.
Lookupy pobierają średnią zafakturowaną cenę i najnowszy koszt każdego artykułu. Zgodność, wzrost kosztów i marża to formuły nad nimi, przeliczane przy odświeżeniu kontraktu.
| Kolumna | Formuła |
|---|---|
| Cena fakturowana | lookup(source="datasets", name="Invoice lines", result="Net Price", match_by=['Item Number':'Item Number'], filter_by=['Customer' == 'header.Customer', 'Invoice Date' >= 'header.effectiveDate'], agg="avg") |
| Zgodność | if(abs('Invoiced Price' - 'Contract Price') > 0.01, "Off contract", "On contract") |
| Obecny koszt | lookup(source="datasets", name="Item costs", result="Unit Cost", match_by=['Item Number':'Item Number'], sort_by="-Effective Date", agg="first") |
| Odchylenie kosztu | ('Current Cost' - 'Cost at Signing') / 'Cost at Signing' |
| Marża % | ('Contract Price' - 'Current Cost') / 'Contract Price' |