Specify a dashboard before anyone builds it
Task
Write the specification a dashboard should start from -- who it is for, what kind it is, and at most five KPIs, each defined well enough that someone else could recalculate it.
Steps
- Choose an audience, for example a sales manager checking yesterday's orders.
- Write
lab/dash/spec.jsonwith the keysaudience,type(one ofoperational,strategicoranalytical),refreshandkpis. - Make
kpisa list of at most five objects, most important first, each with aname, adefinition, asourceand atarget.
Verify
These checks run in a POSIX shell with Python 3: Terminal on macOS or Linux, and on Windows Git Bash (it comes with Git for Windows) or WSL. On Windows, python3 is often a Microsoft Store placeholder that prints “Python was not found”; run alias python3=py in Git Bash first.
python3 -c "import json; s = json.load(open('lab/dash/spec.json')); k = s['kpis']; print('type ok:', s['type'] in ('operational', 'strategic', 'analytical')); print('kpis:', len(k), 'at most five:', len(k) <= 5); print('complete:', all(all(x.get(f) for f in ('name', 'definition', 'source', 'target')) for x in k))"
The type is one of the three, there are at most five KPIs, and every one has a name, a definition, a source and a target. A KPI without a definition and a source cannot be validated later -- which is the whole of objective 4.3.
This is an independent study companion for CompTIA Data+ DA0-002 and is not produced by or endorsed by CompTIA.