I am trying to get summary of failures in percentages of totals, see my query below. It is good, but I want it to show me Vendor1=0.5 and Vendor2=0.5 (50% failures), and not just Vendor1=1 (one failure with 0), Vendor2=2 (two failures of 0)
datatable (Vendor:string, failure:int)
["Vendor1",3,
"Vendor2",0,
"Vendor2",0,
"Vendor2", 7,
"Vendor1",0,
"Vendor2", 1]
| where failure == 0
| summarize Failures=count() by Vendor