Hi Jorge,
You can achieve this specifying the summary type as custom and can implement your own custom summary type.
We have attached a sample demonstarting the using of custom summary in the PivotCalculation objects.Kindly download the same from the folowing link.
CustomSummary_Demo490301880.zipThanks,
Ganesan