Azure Application Insights - Sum by Timestamp Part

How can I sum records by year, month, day and hour only?

+3


source to share


1 answer


In App Insight Analytics:

By the hour:

requests 
 | summarize count() by bin(timestamp, 1h) 

      

By days:

requests 
 | summarize count() by bin(timestamp, 1d) 

      



Monthly

requests 
  | summarize count()  by bin(datepart("Month", timestamp), 1) 

      

On years

requests 
  | summarize count()  by bin(datepart("Year", timestamp), 1) 

      

+9


source







All Articles