0

How to sum duplicated values in a Group. SSRS 2008

My query returns values like the following:

enter image description here

But, I want this:

enter image description here

Cà phê đen
  • 1,883
  • 2
  • 21
  • 20

1 Answers1

0

Seeing your existing query and/or schema, plus details of what you've already tried and the problem(s) you ran into would be helpful, but if your original query was:

SELECT [Cus ID], [Cus Name], [Inv Amt]
FROM Invoices

then you want to GROUP BY the [Cus ID] and SUM the [Inv Amt] values:

SELECT [Cus ID], [Cus Name], SUM([Inv Amt])
FROM Invoices
GROUP BY [Cus ID], [Cus Name]
3N1GM4
  • 3,372
  • 3
  • 19
  • 40