Discussions
Join the NetSuite community to innovate, connect, and discover what’s next.
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. Register now
How to create a formula to calculate the net of Debits and Credits in a Saved Search for Rev Rec?
I have a SS that shows the GL Impact of ARM Rev Rec journals. On some account lines, I get both Dr & Cr amounts. I want to see the net in either the Dr or Cr column so I can use the SS output as csv import input to generate a reversing JE. I have a formula to calculate the net, but even using a case statement to determine whether the net is a debit or credit, for accounts with both debits & credits, I get amounts in both columns.
Net: COALESCE({creditamount},{creditfxamount},0)-COALESCE({debitamount},{debitfxamount}, 0)
Debit: CASE WHEN ABS(COALESCE({creditamount},{creditfxamount},0))-ABS(COALESCE({debitamount},{debitfxamount}, 0)) > 0 THEN ABS(COALESCE({creditamount},{creditfxamount},0))-ABS(COALESCE({debitamount},{debitfxamount}, 0)) END