Add sum field to labels and tooltip templates