Hello,
I'm working on an analytics using the Financials - AR Transactions subject area
What I am pulling in is:
Attributes:
Customer Name, Customer Number, Customer Account Name, Customer Account Number, Paying Customer Site Name,
Measures:
Facts - Document Currency Invoice Amount, Invoice Count & Remaining Amount
I also want to pull in:
Earliest Transaction Date which I have done via Create Calculation and the expression "MIN("Financials - AR Transactions"."Transaction Date"."Transaction Date")"
The one I am struggling with is Earliest Incomplete Transaction Date
The calculation needs to be something along the lines of
Earliest Transaction Date i..e - Min ("Financials - AR Transactions"."Transaction Date"."Transaction Date") but it needs to exclude any transactions where the Remaining Amount is 0
So for example if customer - A Nonymouse has 3 invoices:
12-Dec-2021 for $50 fully paid
01-Feb-2023 for $30 and $10 remaining
07-March-2024 for $100 and $100 remaining
Then I would get an invoice count of 3, Earliest Transaction Date of 12-Dec-2021 and Earliest Incomplete Transaction Date of 01-Feb-2023
In SQL I'd run a sub select in to retrieve the min where remaining amount > 0, I can't use a Create Calculation and Filter as filter expects a measure rather than date. I guess its a case of how best to do it in FDI rather than some over engineered kludge