Function: invert(sum(sum(mean(minus(numbers('ryy'), numbers("xxx")), numbers('ryy')) if numbers("xxx") > numbers('ryy') else minus(numbers('ryy'), numbers("xxx")), mean(minus(numbers('ryy'), numbers("xxx")), numbers('ryy'))), numbers('ryy') if mean(minus(numbers('ryy'), numbers("xxx")), numbers('ryy')) > numbers("xxx") else minus(numbers('ryy'), numbers("xxx"))))