CaseGlobal (fictional rules)Fictional case
Finding a duplicated subtotal in an AI report
An AI report summed detail and subtotal rows together, exceeding the total supported by source vouchers.
- Author
- Seung-joo Park
- Reviewer
- Seung-joo Park
- Last updated
This case is a made-up story
It is not about a real company or customer. The companies, items, codes and numbers are values invented to explain the idea, not real statistics or results.
Where the discrepancy began
Detail and subtotal rows shared an amount column. Summing them separately exposed the duplicated value.
A fictional worked example
- Situation
- Fictional example · Sales lines of 14 and 6 fictional units plus their subtotal of 20 produced a reported 40.
- Result
- Summing the two source lines gives 20. Exclude subtotal rows from the aggregation input.
A check to prevent recurrence
Check detail-key uniqueness and row type and compare an independent total with the report.
