Is there a way to find out what was the highest ba...
# administration
a
Is there a way to find out what was the highest balance for an account in 2019? Additionally would be nice to know on what date this happened.
j
I used the below formula to calculate a running total on Customer Balances. You can manipulate it
sum/* comment */ (CASE WHEN {recordType} = 'customerpayment' THEN ({amount} *-1) ELSE {amount} END) OVER(PARTITION BY {name} ORDER BY {trandate} ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW)
you can probably do a grouping and then maximium option to get the highest balance. I'm not sure how to go about finding the specific date for that balance though
ps. the comment part is necessary to have included. its a work around
a
Thanks @Jacob Jackson - appreciate your response. I’m not familiar with some of the syntax so curious to try it out