Forum Discussion
kovan
4 years agoFrequent Visitor
Calculating Total Balances
hi community I am working on a project where I am trying to add the total balances of id numbers. In order to get this, I need to pull the last balance posted from our files from several id numbe...
rohit_singh
4 years agoSolution Sage
Hi kovan ,
Please create a calculated column as shown below :
Last Balance =
var _maxdate =
CALCULATE(
max(Balances[date]),
allexcept(Balances, Balances[ID])
)
var _maxbal =
CALCULATE(
max(Balances[BALANCE]),
FILTER(allexcept(Balances, Balances[ID]) && Balances[BALANCE], Balances[DATE] = _maxdate)
)
Return
if(Balances[DATE] = _maxdate, _maxbal, blank())
This is the result
Kind regards,
Rohit
Please mark this answer as the solution if it resolves your issue.
Appreciate your kudos! 🙂