Help solve the problem. It is impossible to produce the amount of the grouped fields. I can only add up all the fields. What I want to get the show on the link below.
http://habrastorage.org/files/99c/5df/f1f/99c5dff1f34e4d1a9e51e3769a65b18f.png
PS Sorry for my English, I use translate.google.
In order to help with something like this, it would be good to see a code snippet which you are using. This would give an idea of where the data is coming from and what format the data is.