How to show the total of a numeric column in a tree view

In order to show the total of a numeric column in a tree view it would need to use the attribute “sum“. An example is shown below:

<field name="amount" sum="Total Amount"/>        

The string that is assigned to this attribute is the text that is shown on hover of the value.