Please take a look at the examples to get understand about this function.
setTotalAsSum(enabled);
enabled: Is a boolean expression (true / false).
empty