AUS-DOH-Safety-and-Quality / PowerBI-SPC

A free and open-source PowerBI custom visual for SPC charts

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Incorrect target line with percentage data + incorrect assurance icon with incomplete/variable targets

MatthewCallus opened this issue · comments

When percentage data is used, I have found issues with the target line. I have tested this with the latest version (1.4.1.2) with screenshot and pbix file below:

image

Example.zip

As you can see, when the values are converted to a percentage by either using the Report as percentage or Multiplier options, the target does not also change.

Additionally, for the SPC with the correct lines (top-right), the assurance icon is incorrect. It appears to be using the initial target (0.75) instead of the latest target (0.50). It should display the grey hit or miss icon, as shown below when 0.50 is used throughout:

image

Additionally, if the target is not complete for the whole period, no assurance icon is shown:

image

What should happen to calculate the Making Data Count assurance icon is the target should be compared to the process limits for the last data point in the chart. That is to say, if there is no target at all or it ends before this, there is no assurance icon; and if there is a target at the end, even if it starts only at the last point, there is an assurance icon.

The assurance icon is used to predict future performance based on the current limits (with caution taken when there is active special cause variation). This can be tricky when dealing with changing targets. For example, if the next data point, April 2024, was to have a new target, we would want assurance against this, not the current target of 50%. It would therefore be great if the target line could be extended on the chart without having to add more data (with the dates continuing and the mean and process limits extended). Then the assurance icon could use the target of the next point if provided.

Thanks for the clear report and example data!

By default the visual won't scale user-specified targets with the multiplier, but I've added an option to request this:

image

I've also now updated the development version of the visual to correctly handle different user-specified targets over time as well as missing target values, based on the points above.

Thanks!