You haven't provided enough information about what you are trying to do, so with that in mind all I can do is send to you towards an example on the MSDN site.
Sum - Grouped[^]
If this isn't what you are after then please edit your question and provide as much detail as you can, including some code that you have tried etc.