Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
341 views
in Technique[技术] by (71.8m points)

Finding max of an aggregate function in tableau

I have a question w.r.t to finding max or min of an aggregate function in tableau.

Tableau report is a biller details report where there are multiple billers and for each biller, there are multiple transactions. Each transaction has opening balance, closing balance, debitor, creditor, transaction date, time etc. Requirement is to find the opening and closing balance for each biller. Formula to calculate Opening Balance = Sum(Closing Balance) - sum(transaction amount) - sum(service fee)

The problem is when user specifies a date range, report should show the closing balance as of the end date of that date range. Report is showing the cumulative sum of opening balances of all the transactions in the date range, but I only want the closing balance of the last transaction as per the date range. If I put MAX(Closing Balance), tableau says this is an aggregate function and can't apply max to it.

Any ideas on how to resolve this ?


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...