Column calculation

how to calculate the sum of a column.
i,e,
column A 10
column A 10
total sum in a field 20.
In the ERPnext 15 version.

Reference:


the calculation of a column to a field.

Please check the reference and apply it according to the scenario.