Kusto avgif() 大于

Kusto avgif() greater than

如果持续时间超过一定秒数,我会尝试计算平均值

我无法让它工作

像这样

| summarize Totalcount=count(),Average=avgif(round(duration/1000,2)>10.00)

那是因为 avgif() 需要两个参数。如果我 运行 你发布的内容,我得到:

avgif(): function expects 2 argument(s).

阅读documentation

解决方案可能是:

| summarize Totalcount=count(),Average=avgif(round(duration/1000,2), round(duration/1000,2)>10.00)