Admin KPI: Compare two runs
We now have the ability to show daily changes between sequential runs of a KPI (from date 1 to date 2). This is useful to see details of how things are progressing on a daily basis. It is more common to have to compare KPI runs that are months apart.
In this ticket we add a new tab "Compare" to the KPI interface:
The new tab allows the user to select two or more dates (Date 1, Date 2, ...) and a button to ask Genesys to show the differences between the runs.
This should not require API changes and can be implemented in the UI:
- Load data for run 1 (i.e. baseline)
- Load data for run 2, find matching key in run 1 and append the value from run 2.
- When a key does not exist, add the key and the value from run 1 should be
null
- When a key does not exist, add the key and the value from run 1 should be
- Load data for run 3, find matching...
- Render the resulting table
For bonus points, include the difference in value between run N to run N-1. For extra bonus points, render the difference as +X%
/-X%
.