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 ...
vemishetti123
2 years agoFrequent Visitor
i have used the above formula iand created measure but it is giving me wrong for the week53.
inventory / OnHand =
CALCULATE(FIRSTNONBLANKVALUE(Query1[Week of Year],sum(Query1[closing stock])),all('Query1'))
+ CALCULATE(SUM(Query1[FabInFlow]),FILTER(ALL(Query1),Query1[Week of Year] <=MAXX(Query1,Query1[Week of Year])))
- CALCULATE(SUM(Query1[Cut plan]),FILTER(ALL(Query1),Query1[Week of Year] <=MAXX(Query1,Query1[Week of Year])))
This is the formula i have used.
This is the formula i have used.