Hi @Chillytouch ,
Do you want to show average if metric_type = "paypercentrev" , and show sum if metric_type = "revenue" or "salary"? I think you can try If function to achieve your goal.
Result is as below.
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.