Create a report for incidents created and grouping by time of day

Brandon Akers
Tera Contributor

I am trying to create a report to show incidents created during different hours of the day. I was originally looking at buckets from PA, but we do not have access to that in our instance. The groupings should be:

 

0-7 = Before Business Hours

7-9 = Before Core Hours

9-17 = During Core Hours

17-19 = After Core Hours

19-24 = After Business Hours

 

Or like the graph below. 

BrandonAkers_0-1736537516824.png

 

1 ACCEPTED SOLUTION

You could create a field that stores the time of day on the incident/task table, but that would take some dev work.  It would make the reporting easier, but probably not worth it.

 

You can also create a report like this by using multiple datasets (one for each time range), and use the Trend function in the conditions.  

 

For example you could have a condition like this in one of the datasets:

JoshPetrick_0-1736545118878.png

 

Then you can end up with a report looking like this:

JoshPetrick_1-1736545165669.png

 

View solution in original post

8 REPLIES 8

Brandon Akers
Tera Contributor

I have attempted to create custom report ranges and though it is giving me the values on a the report, it is not adhering to the parameters I set for the ranges

BrandonAkers_0-1736538821454.png

 

Screenshot 2025-01-10 at 2.54.05 PM.png

This is the drilldown for "before business hours" Notice the time range is nowhere near 6:59:59

Screenshot 2025-01-10 at 2.55.29 PM.png

  

You could create a field that stores the time of day on the incident/task table, but that would take some dev work.  It would make the reporting easier, but probably not worth it.

 

You can also create a report like this by using multiple datasets (one for each time range), and use the Trend function in the conditions.  

 

For example you could have a condition like this in one of the datasets:

JoshPetrick_0-1736545118878.png

 

Then you can end up with a report looking like this:

JoshPetrick_1-1736545165669.png

 

Hello Josh,

I was attempting to create something similar to what you are showing on your graph, but I am not sure how you were able to separate the hours into three different bar graphs. Are you able to explain or assist on the configuration you used?

Hi Will, I used the multiple dataset feature explained here: https://www.servicenow.com/docs/bundle/yokohama-now-intelligence/page/use/reporting/concept/c_Multip...

 

It's a little unusual because each bar is really a separate dataset, but it works for this scenario.