Display counts, sums, and averages in Azure DevOps with the Formula Widget. Use value-based colors, border highlights, or a 5-star satisfaction scale.
Context: Your team wants to display a custom project metric on an Azure DevOps dashboard and make values that need attention easy to spot, such as a high blocker count, a large amount of remaining work, or a low customer satisfaction score.
Use the Formula Widget in Great Gadgets for Azure DevOps to calculate a number from a shared query and display it with value-based colors and optional border highlighting.
This use case shows three configurations: COUNT for blocked work items, SUM for total remaining effort, and AVERAGE for customer satisfaction. Use a separate widget for each metric you want to display.
To display multiple KPIs together in one widget, use the Advanced Formula widget. See How to display custom project metrics, calculate percentages, and sum up fields in Azure DevOps for a step-by-step example.
Example 1: Count and highlight blocked work items
-
In Boards → Queries, create a query containing your team’s blocked work.
-
Save the query under Shared Queries as Blocked Items.
-
Go to Dashboards. Add Formula Widget to your dashboard. See How to use Great Gadgets.
-
On the Data tab, at The meaning of data enter a name representing what the formula tracks, in this case Currently blocked work items.
-
At Data source, select the Blocked Items shared query created before.
-
Set Formula to COUNT and Decimal places to 0.
-
On the More Settings tab, set Display mode to Number colored by value.
-
Configure the custom limits and colors to produce these ranges. This example flags four or more blocked items for additional attention. These are example limits. Adjust them to reflect your team’s needs.
-
Enable Extra highlight by coloring border.
-
Save the configuration.
Interpret the result
The number shows how many work items are currently Blocked.
-
Green means no unfinished work items match the blocked query.
-
Orange means the query returns 1–3 blocked items.
-
Red means the count has reached 4 or more, the configured point for additional attention.
Open the shared query in Boards → Queries to inspect the items. Review their assignees, priorities, blocking reasons, and dependencies to decide where help is needed.
Practical example
For example, if 6 work items are blocked, the widget displays 6 in red, with a matching red border.
Open the Blocked Work Items query and review what is preventing those items from progressing. Agree on an owner and next action for each blocker, such as contacting a dependency owner or arranging a decision.
If four items are unblocked, the query then returns 2 items. The updated widget will show 2 blocked items in orange, with no colored border. In this example, border highlighting is enabled for the red range only.
And that’s it! You can now count blocked work items in Azure DevOps and highlight them to inspect the work that needs attention.
Example 2: Sum and highlight total remaining work in story points
In this example, we will calculate the Remaining Work as SUM of story points.
-
In Boards → Queries, create a query containing the tasks in the project, team, or sprint you want to monitor.
-
Add another Formula Widget and configure its Data tab to use that query as a Data source.
-
Set Formula to SUM and set Decimal places to 1.
-
At Calculation field, select Story Points.
-
On the More Settings tab, select Number colored by value and configure the custom limits and colors to produce these ranges.
-
Enable Display suffix, and enter SPs.
-
Save the configuration. These limits are examples. Enter your team’s agreed limits.
Interpret the result
The number shows the total remaining effort recorded against the selected tasks. It helps you see when that total reaches a level your team wants to review.
Practical example
For example, if the selected unfinished stories total 329.5 SPs against an agreed limit of 250 SPs, the estimate is 79.5 SPs above that limit. The illustrated widget displays 329.5 SPs in red with a matching border.
Open the selected shared query to review the largest estimates, dependencies, and priorities. If the updated remaining-work total later falls to 190 SPs, the widget displays 190 SPs in orange.
Example 3: Average and highlight customer satisfaction
Use AVERAGE to display the mean value of a numeric field across the selected work items.
This example uses a numeric custom field named Satisfaction Score, with values ranging from 1 to 5. Use the equivalent field maintained in your organization and include only items with a recorded rating.
-
In Boards → Queries, create a query containing completed work items with a recorded customer rating in the reporting scope you want to analyze.
-
Add another Formula Widget and configure its Data tab to use that query as a Data source.
-
Set Formula to AVERAGE and set Decimal places to 1.
-
At Calculation field, select Satisfaction Score.
-
On the More Settings tab, select Number colored by value and configure the custom limits and colors to produce these ranges.
-
Save the configuration. Here, higher values represent a better result, so the colors run in the opposite direction from the blocker and remaining-work examples.
Interpret the result
The number shows the average rating per rated work item. Read it alongside the number of responses and the feedback recorded on those items.
Practical example
For example, if four work items have ratings of 4, 5, 5, and 4, the widget displays an average of 4.5/5 in green.
An average of 2.5/5 would appear in red with a matching border, prompting a review of the feedback. Open the query behind the items to investigate lower ratings and identify recurring concerns.
Display the results on a 5-star rating scale
For the CSAT score, you can also display the result on a 5-star rating scale. On the More Settings tab, select the 5-star rating scale option under Display mode, then save the configuration.
And that’s it! You can now display a count, sum, or average on your Azure DevOps dashboard and use colors to highlight results that need attention.
For all configuration options, see the Formula widget documentation.
Haven’t tried Great Gadgets for Azure DevOps yet?
If you need help or have any questions, feel free to email us anytime at support@stonikbyte.com or open a support ticket.