Hoping someone smarter than me can help me out here...
I am getting the error SSRS item with the same key has been added with the below SQL I have tried fining what the issue is with the code, but haven't been able to find it.
Can someone help me out :)
SELECT
Name.ID, Name.COMPANY, Name.CATEGORY,
HOUSEPOP.HH_INV AS 'Current Year HH_INV',
HOUSEPOP_1.HH_INV AS 'Last Year HH_INV',
name.MEMBER_TYPE, name.CATEGORY,
HOUSEPOP.TOTAL_POP,
(HOUSEPOP.HH_INV - HOUSEPOP_1.HH_INV) AS 'Difference',
((HOUSEPOP.HH_INV - HOUSEPOP_1.HH_INV)/HOUSEPOP_1.HH_INV) AS '% Change'
FROM
Name
INNER JOIN
HOUSEPOP ON Name.ID = HOUSEPOP.ID
INNER JOIN
HOUSEPOP AS HOUSEPOP_1 ON Name.ID = HOUSEPOP_1.ID
WHERE
HOUSEPOP.BILL_YEAR = @Bill_Year
AND HOUSEPOP_1.BILL_YEAR = @Bill_Year -1
ORDER BY
ID