31 May 2023 02:55 PM
fetch events
| summarize count(), by:{bin(timestamp, 7d)}
Solved! Go to Solution.
01 Jun 2023 07:33 AM - last edited on 01 Jun 2023 12:07 PM by stefan_eggersto
Hi Stefan, you can achieve this with the formatTimestamp function, like so:
fetch events
| fieldsAdd week = formatTimestamp(timestamp, format: "w yyyy")
| summarize count(), by:{week}