Get started
Use it before joining purchasing, warehouse and carrier exports.
Try this first
Two purchase lines total UGX 80,000. A resend duplicates the first line worth UGX 30,000. Four orders were due Tuesday; three were on time and one lacks a delivery event. Document the line key, deduplicated spend and due-order on-time rate.
Check your result
Resends do not increase spend. An outstanding order cannot disappear from a due cohort.
What this lesson teaches
The real-world event or entity that one row represents, such as one invoice line or one delivery attempt.
Where you can use it Use it before joining purchasing, warehouse and carrier exports.
Key terms in this lesson
- Grain The real-world event or entity that one row represents, such as one invoice line or one delivery attempt.
- Metric definition The written rule specifying the population, time basis, numerator, denominator, unit and exclusions for one measure.
Understand the method
An order may produce several lines and several delivery events. Repeating an order value on each event can multiply reported spend. Assign a key at the grain required by the question.
Purchase P6 has two lines worth UGX 20,000 and 30,000. The carrier records three scans for the same shipment. Joining every line to every scan yields six rows.
Excel: Tables
Follow the header, single-record row and filter. Use the same structure to inspect identifiers without changing the order of dependent cells.
- Try it
- Write what one input row means above each table.
- Check your work
- The two purchase lines total 50,000. The six-row result would incorrectly report 150,000 if summed. Aggregate events to the shipment or keep separate tables.
Work through the steps
- Write what one input row means above each table.
- Identify duplicate keys and compare totals before and after a join.
Count spend once per purchase line
How can an apparently reasonable join triple the spend on purchase P6?
| Record | Rows | Meaning |
|---|---|---|
| Purchase lines | 2 | UGX 20,000 and UGX 30,000 |
| Carrier event log | 3 | Three scans of the same shipment |
| Line-to-event join | 6 | Each purchase line repeats three times |
Check your reading
Sum the two purchase lines to report UGX 50,000. Aggregate carrier events separately before joining.
Study the worked example
The two purchase lines total 50,000. The six-row result would incorrectly report 150,000 if summed. Aggregate events to the shipment or keep separate tables.
Practise with limited connectivity
- Copy the input rows onto paper. Write the formula as a numerator and denominator, calculate by hand and trace one figure back to its original record.
Tools and reference guides
Practice files included with enrolment
Save a private copy and use the supplied records as you work through each module.
- Dashboard inputs and validation totals
- Module practice and evidence log
- Offline workflow and project brief