Hi!
I’d like to create a metric to keep track of the number of outstanding customer invoices over time.
I have an import from the ERP system with the status of every issued invoice, and the following columns:
- Customer Number
- Invoice Date
- Payment Date
The metric should be of dimension Day, and should return the # of outstanding invoices at any given time.
Excel equivalent:
1. Generated a sequence of days ( → Day metric in Pigment)
2. Use sumproduct formula for the aggregation
=SUMPRODUCT((Invoice_Date>=Day)*((Payment_Date>Day))+(Payment_Date=0))
What would be the equivalent formula in Pigment for this?