Discussions
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