I need to calculate No of days the state of asset is in IN Stock?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-28-2018 10:37 PM
hi
I need to calculate No of days the state of asset is in IN Stock?
As an Asset Owner/Manager I need a list of assets in stock and the number of days it has been in stock.
I will know when this is complete when a list can be viewed of assets in stock and how many days.
- Labels:
-
Client Software Distribution
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-30-2018 07:17 AM
Please try below steps
1)Create metrics definition on asset table
2) Insert and stay "metrics events" business rule change table to "Asset [alm_asset]"
3) Duration gets captured as below when state changes from "In stock" to any other state.
|
4) You can create report on "Metric_instance" table to get the records
5) If end date is empty, You can write script to get the duration by using start date and current date.
PS : Mark Correct if this solves your issue and also hit Like and Helpful if you find my response worthy based on the impact.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-07-2020 08:45 AM
Where do I go in ServiceNow to create a dashboard with that info?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-01-2021 11:41 PM
This metric helps/calculate if we change anything currently
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-10-2021 04:06 PM
This might be oversimplifying, but I do something similar to this using a Time Series report of the type Spline.
I used these settings. The users seem to find it useful as is for assets currently in stock and to see those first in and how long they've been idle since the state changed to In stock. They can of course drill into the record lists under each data point.
If you are looking to determine how much aggregate time an asset has spent In stock over its full life and across state changes, this "shortcut" is not going to help with that 🙂