Forum Discussion
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 nedd to get the date when inventory reaches 0.
How do I create a measure or calculated column that gives me the running inventory for every date? Or is this achievable with a measure?
Which formula do I use to get the date? I have tried
5 Replies
- rfigtreeResolver III
=calculate(min(table[date]),filter(all(table),table[runninginventory]<=0))
- AnonymousNot 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?
- rfigtreeResolver III
running=calculate(sum([distributed]) - sum([activated]) - sum([returned]), filter(all(table), [date] <= earlier([date]))