Discussions
SuiteWorld brings thousands of innovators, builders, and leaders together to learn, connect, and shape what’s next. This October, explore how to build a stronger foundation for growth through inspiring keynotes, major product reveals, hands-on sessions, and unforgettable moments—all in one place for our biggest event of the year. Join us
Search Results Inconsistent
I have created a saved search that produces a trial balance using the transaction record. The search includes the following:
Beginning Balance (all transaction up through the prior last day of the month)
Debits (sum for current month)
Credits (sum for current month)
Net Change (difference between sum of debits for current month and sum of credits for current month)
Ending Balance (account.balance)
I am getting inconsistent results for my beginning balance. I am using the following:
SUM(CASE WHEN {trandate} BETWEEN TO_DATE('1/1/1986','MM/DD/YYYY') AND trunc({today},'MM')-1 THEN {debitamount} ELSE 0 END) - SUM(CASE WHEN {trandate} BETWEEN TO_DATE('1/1/1986','MM/DD/YYYY') AND trunc({today},'MM')-1 THEN {creditamount} ELSE 0 END)