• Thanks Igor, but unfortunately we don't have our Contracts column with that sql.

    re

    (CASE WHEN t.LedgerType = 1 THEN t.LedgerAmount ELSE 0.00 END) * -1 AS