Getting the accurate Current stock on an Inventory Management App

Claude
New Member

Hi guys, I succeeded to create an inventory app. And to get the current inventory level, I used the formula COUNT([Related Purchases]) - COUNT([Related Sales]) + [Initial Stock].
However, when I add or reduce the stock by any amount for example 10, the current stock changes by just 1 digit. Current stock = 30, I add 20 stock. The current stock is supposed o show as 50. But it instead shows as 31. Please how do I fix this?

Thanks

0 2 118
2 REPLIES 2

Aurelien
Google Developer Expert
Google Developer Expert

Hi @Claude

Welcome to the community !

Prefer SUM instead of COUNT

Steve
Platinum 4
Platinum 4

For reference:

Top Labels in this Space