---FOR EXAMPLE: Invoice number Line Item Amount 800 1 -$2000 800 2 -$6000 800 3 +$7000 so I want to pull the SUM of invoice #800 to reflect -$1,000 ONLY (NOT -$8000) This is the code below USE [CCS] SELECT ISNULL(be.[FY],'Total') as FY, SUM(be.[Invoice Amount]) as 'Total Amount', SUM(CASE WHEN DATEDIFF (DAY,be.[Due Date],ft.[EndDate])<=365 then be.[Invoice Amount] ELSE 0 END) as 'UnderOneYear', SUM(CASE WHEN DATEDIFF (DAY,be.[Due Date],ft.[EndDate])>365 and DATEDIFF (DAY,be.[Due Date],ft.[EndDate])<=730 then be.[Invoice Amount] ELSE 0 END) as '1_2 years', SUM(CASE WHEN DATEDIFF (DAY,be.[Due Date],ft.[EndDate])>730 and DATEDIFF (DAY,be.[Due Date],ft.[EndDate])<=1095 then be.[Invoice Amount] ELSE 0 END) as '2_3 years', SUM(CASE WHEN DATEDIFF (DAY,be.[Due Date],ft.[EndDate])>1095 then be.[Invoice Amount] ELSE 0 END) as 'Over_3_years' FROM ([dbo].[FiscalDateTable] as ft INNER JOIN ([dbo].[TB_DATA_All] as be LEFT JOIN [dbo].[Master Reason Codes List] AS mrc ON be.[Reason Code] = mrc.[Reason Code]) ON ft.[Fiscal YYYY-MM] = be.FY) INNER JOIN [dbo].[Master Profit Center List_All Divisions_New] as mpc ON be.[Profit Center] = mpc.[Profit Centers] AND be.CoCd = mpc.[Company FY15] WHERE (be.[Reconciliation Account]) LIKE'%24%' AND mpc.New_Div ='DI' AND be.FY BETWEEN '2018-12' AND '2019-12' AND be.[Invoice Amount]<0 GROUP BY ( be.[FY]) ORDER by be.[FY] ASC <br>