Steven_Su
Mar 06, 2022Copper Contributor
Fill zero in the table for timechart
Hi, I would like to create a timechart for high daily number of incident in the past 7-day. However, not everyday has high incident. How could I fill the 0 into the result if that day has no high incident?
I had the similar ticket before: https://techcommunity.microsoft.com/t5/microsoft-sentinel/barchart-when-the-returned-result-is-zero/m-p/3219799#M9144
I am not sure if i need to create the dynamic object for the past 7-day.
Thanks.
SecurityIncident
| where Severity == "High"
| summarize StartTime = startofday(min(TimeGenerated)), count() by Severity, IncidentNumber
| summarize count() by bin(StartTime,1d)