If you need to show the total of a numeric column in a tree view you 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 actually the text that is shown on hover of the value.