StrategyBlocks Help

How to create a SCORE metric

A SCORE metric turns another metric’s status into a number: 1 when it’s good, 0 when it’s in warning and -1 when it’s bad. It’s most useful as part of a bigger calculation. See How to Create a MINIMUM SCORE Cascading Metric.

You need an existing metric to score.

Create a New Metric

Go to Monitor → Metrics and click New. See Metrics Table.

Set the Tolerance

A SCORE metric only has the values 1, 0 and -1. The warning (yellow) range lies between Tolerance Start and Tolerance End, but doesn’t include them. If you set both to 0, no value can ever be in warning. If you set them to 1 and -1, the warning range fills most of the chart. Halfway, 0.5 and -0.5, is a good balance.

Tolerance Start set to 0.5 and Tolerance End set to -0.5
A chart with a tolerance of 0.5 to -0.5
A chart with a much narrower tolerance

Choose the range you want and save the metric.

Calculate the Actuals

In this example, we’ll score a metric that started badly and moved into the good range as its target fell.

The source metric’s chart, moving from bad to good over time

Open your new metric’s Actuals page. You can add actuals by hand or calculate them. Click Calculate to open the calculation editor.

The Actuals page with the Add Actuals and Calculate buttons
The calculation editor’s list of functions, including SCORE, MIN_SCORE and MAX_SCORE

Select SCORE from the list of functions. Then click the blue button next to it to add a metric. SCORE only takes one metric, so the other buttons are hidden.

SCORE selected, with the Add a Metric button beside it

Pick the metric to score, and click Save.

A SCORE calculation of the Historic Metric

Set the Target to 0

The target should always be 0. Then the tolerance marks -1 as bad (red), 1 as good (blue) and 0 as warning (yellow).

If you don’t enter any targets, the chart has no target line for past dates, because the source metric has no past targets:

The SCORE chart with no targets

You could enter a single target of 0 at the first date, 2012 in this example:

The SCORE chart with one target of 0

That works until the source data changes. If someone removes the 2012 data from the source metric, the target is left dangling. It’s more reliable to make the target a calculation that is always 0: the same calculation as the actuals, multiplied by 0. Set it up on the metric’s Targets page:

A target calculation of SCORE of the Historic Metric multiplied by 0

This target has a value on every date the actuals do, and no others, so there are no stray past or future values. It also follows any change to the source metric.

The two metrics now line up when you compare them in the metrics table:

The SCORE metric and its source metric side by side in the metrics table