Forum Discussion
Anonymous
5 years agoNot applicable
Return first date with zero inventory
Hi all, I need to find the first date our sales location have zero inventory of a product. I have tried every possible way to calculate this. So wanted result is this: I ned...
rfigtree
5 years agoResolver III
=calculate(min(table[date]),filter(all(table),table[runninginventory]<=0))
- Anonymous5 years agoNot applicable
Thanks, but I don't have the runninginventory as a column. I dont understand how to calculate it. If i solve that everything else should fall in place.
Any suggestions?
- rfigtree5 years agoResolver III
running=calculate(sum([distributed]) - sum([activated]) - sum([returned]), filter(all(table), [date] <= earlier([date]))
- Anonymous5 years agoNot applicable
Hi, rfigtree
Thanks but that didn't really solve my problem.
First distribution for 7 nights kiosk is on the 1.10.2020. on 14.10.2020 inventory should be 6, instead I get the first product activation. So the first date formula returns the dates for every activation, not when inventory is <= 0.
Any suggetions? I really need to solve this puzzle 🙂
Thank you
Christer