The sub_metric name will not be 'raw' or 'sum' but something.raw or something.sum. So will this help?