Hi All
I am trying to summarize a table that contains payment of customers.
I want the first transaction date and first amount, also the last transaction date and last amount.
As soon as i have this information, i will be able to calculate what the customer should have paid me from when they started paying to now.
In addition, i will know those who are behind.
PS: I am unable to get the FirstPaymentAmount and LastPaymentAmount. Any solution?
DAX Code:
BI_ARREARS = SUMMARIZE(BI_TRANSACTIONS, BI_TRANSACTIONS[Rim_No], "FirstTransactionDate", MIN(BI_TRANSACTIONS[Payment_Date].[Date]),"Total Amount Paid",SUM(BI_TRANSACTIONS[Payment_Amount]), "LastTransactionDate", MAX(BI_TRANSACTIONS[Payment_Date]))
Results