Quantcast
Channel: Desktop topics
Viewing all articles
Browse latest Browse all 213916

Summarize Table

$
0
0

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]))

 ResultsCapture.PNG


Viewing all articles
Browse latest Browse all 213916

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>