• You can place your CASE expression in a CTE, derived table, or CROSS/OUTER APPLY and then do the SUM in the main query.

    Drew

    J. Drew Allen
    Business Intelligence Analyst
    Philadelphia, PA