Custom groups on report results

joxher
Tera Contributor

I have a report that is getting the count of incidents resolved in a month and breaking them down in groups of date ranges. For example, Same Day, 2-5 days, 5-7 days, 1-2 weeks, etc. This is an old report that used the Business duration field for tracking. What we've noticed is that the system is adding 2 days to the business duration for incidents even if the Created to Resolved time calculates to less than that. 

 

I've checked with support and they had me check to make sure I was only using one calendar and also suggested using metrics because the business duration field is leftover from earlier versions of ServiceNow. With this information, I found that we had some metrics already created to do this Create to Resolve calculation and attempted to create an updated report using this metric, but I have not been able to find any resources that shows how to group metric results similar to how business duration gets grouped in the old report.

 

For reference, this is the old report and is attached:

oldReport.png

 

This is the new report I've been tinkering with to try to figure out how to achieve the same results. It currently lists out every variation of time to resolve as a result.

newReport.png

 

Any assistance would be appreciated!

 

1 ACCEPTED SOLUTION

AndersBGS
Tera Patron
Tera Patron

Hi @joxher ,

 

As the report range exist on a global level, you can just make a report on the table metric_instance:

AndersBGS_0-1706599400641.png

Chose bars as vizulization:

AndersBGS_1-1706599419131.png

And group by duration:

AndersBGS_2-1706599435826.png

With the condition of the definition:

AndersBGS_4-1706599498468.png

This will give you the same view as the original report:

AndersBGS_3-1706599460031.png

 

 

If my answer has helped with your question, please mark my answer as accepted solution and give a thumb up.

 

Best regards

Anders 

If my answer has helped with your question, please mark my answer as the accepted solution and give a thumbs up.

Best regards
Anders

Rising star 2024
MVP 2025
linkedIn: https://www.linkedin.com/in/andersskovbjerg/

View solution in original post

1 REPLY 1

AndersBGS
Tera Patron
Tera Patron

Hi @joxher ,

 

As the report range exist on a global level, you can just make a report on the table metric_instance:

AndersBGS_0-1706599400641.png

Chose bars as vizulization:

AndersBGS_1-1706599419131.png

And group by duration:

AndersBGS_2-1706599435826.png

With the condition of the definition:

AndersBGS_4-1706599498468.png

This will give you the same view as the original report:

AndersBGS_3-1706599460031.png

 

 

If my answer has helped with your question, please mark my answer as accepted solution and give a thumb up.

 

Best regards

Anders 

If my answer has helped with your question, please mark my answer as the accepted solution and give a thumbs up.

Best regards
Anders

Rising star 2024
MVP 2025
linkedIn: https://www.linkedin.com/in/andersskovbjerg/