Forum Discussion
redhol
8 years agoFrequent Visitor
Weekly Inventory through Inventory movements column
Hi All, Might be an easy one but I have yet to figure it. I am trying to display closing stock for each week for some inventory analysis that I am working on - I am struggling to get this value a...
- 7 years ago
Hi redhol,
The cause could be the [Date] in the dates. Please try the formula below.
Rolling Stock = CALCULATE ( SUM ( HR_StockMovements[MovementQty] ), FILTER ( ALL ( 'Calculations'[Date]), 'Calculations'[Date] <= MAX ( 'Calculations'[Date] ) ) )Rolling Stock = CALCULATE ( SUM ( HR_StockMovements[MovementQty] ), FILTER ( ALL ( 'Calculations'[Date].[Date]), 'Calculations'[Date].[Date]<= MAX ( 'Calculations'[Date].[Date]) ) )Best Regards,
Dale
v-jiascu-msft
7 years agoMicrosoft Employee
Hi redhol,
The cause could be the [Date] in the dates. Please try the formula below.
Rolling Stock =
CALCULATE (
SUM ( HR_StockMovements[MovementQty] ),
FILTER (
ALL ( 'Calculations'[Date]),
'Calculations'[Date] <= MAX ( 'Calculations'[Date] )
)
)
Rolling Stock =
CALCULATE (
SUM ( HR_StockMovements[MovementQty] ),
FILTER (
ALL ( 'Calculations'[Date].[Date] ),
'Calculations'[Date].[Date] <= MAX ( 'Calculations'[Date].[Date] )
)
)
Best Regards,
Dale
redhol
7 years agoFrequent Visitor
That works perfect.
Thanks for your help.