Hi!
What do you mean by tally all possible combinations? All of your data is numerical? You can definitely use expression boxes and filtered XPath to get sums, but a lot depends on what you are trying to do. If it is hard to explain, you can always attach your template (under the Options tab) so someone can help out....