It now works like this: when the supplier has no stock and nothing was issued to patients during a month, then we are going to add 99999 (or should we make it blank perhaps? i will prefer that) in the quantity field.
If nothing was issued to patients during a month but we had stock on hand, then i will use "0" in the quantity field.
I need to calculate the average using this criteria for a period
Expand|Select|Wrap|Line Numbers
- Result: FormatNumber((DSum("[Quantity]","tblAcquire","[Quantity]>0"))/(DCount("[Month]","tblAcquire","[Quantity]>0")),2)
Expand|Select|Wrap|Line Numbers
- month Quantity
- 1 20
- 2 99999 or leave blank?
- 3 0
- 4 18
- 5 99999 or leave blank?