We have recently found that the SUM function does not always work - usually this is fine as it shows an error. However, we have just found an example where there was no error, but the SUM was not correct. It was just ignoring one of the fields
DO NOT TRUST IT