Why you can’t SUM stock on hand: semi-additive measures explained
See why adding up inventory snapshots across months gives a nonsense total, and learn what a semi-additive measure is.
You will learn to
- Recognize snapshot data that must not be added up over time
- Explain why a SUM of stock is right for one month but wrong for a quarter or year
- Count how many snapshots a total is adding together
How it works
Most numbers in a sales model are **additive**: January sales plus February sales really is the sales of both months. A stock count is different. The `Inventory` table is a **snapshot**: one row per product at each month end, saying how many units were on the shelf that day.
Snapshots add up across **products** (40 helmets plus 60 bottles is 100 items in the store), but not across **time**. If you had 900 units at the end of January and 880 at the end of February, you never had 1,780. Data like this is called **semi-additive**: it adds up over some columns but not over dates.
A plain `SUM` doesn't know that. In a month row it sees one snapshot and is right; in a quarter or year row it sees three or twelve snapshots and adds them all. The rest of this path fixes that with balance functions, but first it helps to see the mistake with your own eyes.
Practice it hands-on with a real data model and a live report that updates as you type.
Stock Value Total = SUM(Inventory[Stock Value])