Forum Discussion
vemishetti123
2 years agoFrequent Visitor
undefined
can anyine help me on this. I have a table which contains date,weekno,asofstock,fabinflow,cutplan now i need to calculate opening stock for the week53(which is first row) should ...
amitchandak
2 years agoSuper User
vemishetti123 , In such case we have to create cumulative measures, prefer using a date table
Inventory / OnHand
CALCULATE(firstnonblankvalue('Date'[Month],sum(Table[Intial Inventory])),all('Date'))
+ CALCULATE(SUM(Table[Ordered]),filter(all(date),date[date] <=maxx(date,date[date])))
- CALCULATE(SUM(Table[Sold]),filter(all(date),date[date] <=maxx(date,date[date])))
Power BI Inventory On Hand: https://youtu.be/nKbJ9Cpb-Aw