We're reclaiming inactive PDIs to keep them available for active builders. Learn what's changing, who's affected, and how to protect your work. Read More

Help with Metric calculation.

imran rasheed
Tera Contributor

I need suggestion in retrieving the metrics. 

Requirement is to get all the "On Hold reason" update on tickets, which I am able to retrieve from metrics calculation. At the same time I need to know to whom the ticket was "assigned to" when the "On hold reason" was set. As per my knowledge, we cannot retrieve two metric fields together.  If I have to retrieve it as two metrics, how can I combine it with database view? Or any other of achieving this?

3 REPLIES 3

Dr Atul G- LNG
Tera Patron

Correct — we can’t build a metric on two fields in one go. If you create a database view, you need to make sure there is at least one common field between both tables so the view can return matching records.

You can try using a metric with the Incident table database view only, or ensure your DB view has proper join conditions with at least one shared field.

*************************************************************************************************************
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

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

How can I create database view with two different metric fields with a common field. I don't see any possibility.

Hi @imran rasheed 

 

The fundamentals will remain the same. Take a look at some OOTB database views.

 

https://INSTANCENMAE.service-now.com/now/nav/ui/classic/params/target/sys_db_view_list.do%3Fsysparm_userpref_module%3Db93a6f470a0a0b79003c94c2bd919fbf%26sysparm_clear_stack%3Dtrue

*************************************************************************************************************
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

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