Report based on Incident_metric

ShobhitA
Giga Contributor

Hello Champions, I have created a report in Service Now based on Incident_metrics table.

For one incident, I have multiple records based on  change of the Assignment group.

I want a single record per incident, with a  minimum start ( start is a date column).

Please advise how to fetch records based on the minimum date . I think there must be some java script function through which I can achieve this.

 

Thanks

Shobhit Agarwal

3 REPLIES 3

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @ShobhitA 

The question is about what time you need it. The metric records are generated based on activity in the incident, so it’s difficult to determine or calculate a specific time. Do you have any screenshots that could help us understand better?

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************

e.g. I have three records for an incident, I want to make a report that returns the record having the minimum start (date column)

 

NumberOpenedStart
INC0012025-07-28 09:44:242025-07-28 09:47:00
INC0012025-07-28 09:44:242025-07-28 14:41:23
INC0012025-07-28 09:44:242025-07-28 09:47:00

Hi @ShobhitA 

You can do this using a pivot table type report. Once you’ve created the metric, use that metric to build a report of type ‘Pivot.’

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************