id,compare_method,description,expression,divider,name,dp,sequence,type,suffix mis_report_kpi_1,Percentage,CA,-bal[X2001],,ca,,1,Numeric,€ mis_report_kpi_2,Percentage,CAHT invoice,sum([s.amount_untaxed for s in inv]),,total_invoice,,2,Numeric,€ mis_report_kpi_3,Percentage,Cost,bal[X2110],,cost,,3,Numeric,€ mis_report_kpi_4,Percentage,Profit,ca - cost,,profit,,4,Numeric,€ mis_report_kpi_5,Difference,Margin,profit/ca,,margin,,5,Percentage,% mis_report_phonecall_kpi_1,Percentage,Total phone call,len(phone),,total_phone_call,,1,Numeric, mis_report_phonecall_kpi_2,Percentage,Average duration phone call,sum([p.duration for p in phone])/total_phone_call,,average_duration_phone_call,2,2,Numeric, mis_report_phonecall_kpi_3,Percentage,Total converted phone call,sum([p.opportunity_id and 1 or 0 for p in phone]),,phone_call_convert,,3,Numeric, mis_report_phonecall_kpi_4,Percentage,Average duration converted phone call,sum([p.opportunity_id and p.duration or 0 for p in phone]),,average_convert_duration_phone_c,2,4,Numeric,