
- Subscribe to RSS Feed
- Mark as New
- Mark as Read
- Bookmark
- Subscribe
- Printer Friendly Page
- Report Inappropriate Content
Lets say you're able to predict that for each incident your Database team receive, they will likely have to complete 2 additional tasks to solve it (yes, made up example but stick with me here 😄 ) .
Your manager asks you to report on the number of tasks the team will have to do this week, based on current Incident count and they want it as a graph for an important PowerPoint presentation.
With the 'classic reports' you would struggle to achieve this - Sure, you could report on the Incident table, then tell them 'Guys, just multiply by 2, I've got better things to do'..... but that may not go down so well.
This is where Formula indicators come in... they can easily allow us to report on 'data that is not there' since we can do calculations and return values that the widget will display for us.
The ServiceNow docs explain formula indicator setup very well, so I won't create that data since it's there 😉
or here to be more precise:
However a quick high level, you'll roughly need to:
- Create a new indicator (type: 'automated') which will
- have a data source of the incidents table (you can keep this very broad, all incidents - This is useful to stay broad, as then it can be reused on other indicators and then its within those indicators you would apply more specific filters).
- Set a filter on the indicator for: Assignment_group = 'Database Team'
Now we have an indicator gathering incidents for our Database team.
- Now create a NEW indicator (yes, this will then leverage the indicator we just created) but this time of type 'formula'.
- Then its as simple as adding the previous indictor and *2. The contents of the formula window would look something like this:
[[Number of incidents]] * 2
- Finally link a widget to this indicator, add the widget to your dashboard and
Now you have the report needed for that super important meeting... 😅
Interestingly, because Formula indicator code runs when they display - You can in theory do a GlideRecord Aggregate count (similar but more efficient that GlideRecord GetRowCount() ) however I've yet to fully review whether that is good or bad practice and just share it here for completeness.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.