I want to, when filtering my results, at the end, group everything by name for example. If multiple results contain the same name, they are grouped, as well as all of their other fields being summed together if they are numbers.
So I don't just want it to group them by name, I want to get all the results of all the other fields grouped as well depending on that name criteria.
Another example is if I want them grouped by name and country. If they have the same name AND are in the same country, they are grouped.
So how to group them and show all results, and how to group them using more than 1 criteria?