Function: sum(round(round(numbers('yxr'), numbers("xxx")) if numbers("xxx") > mean(round(numbers('yxr'), numbers("xxx")), numbers('yxr')) else numbers('yxr'), mean(round(numbers('yxr'), numbers("xxx")), numbers('yxr'))), numbers("xxx") if numbers('yxr') > mean(round(numbers('yxr'), numbers("xxx")), numbers('yxr')) else round(numbers('yxr'), numbers("xxx")))