Summing partial dataset with expressions

You can find it on the Module Showcase, on my own website, and here on the forum:

That last has the most explanations and examples.