Hi, The count value needs to be a double/real
https://learn.microsoft.com/en-gb/azure/data-explorer/kusto/query/todoublefunction
let totalevents = toscalar(SecurityEvent
| summarize count());
SecurityEvent
| summarize count() by EventID
| extend total=totalevents
| extend perc = todouble(count_) / total