Forum Discussion
Weekly Inventory through Inventory movements column
- 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
Hi redhol,
Can you share a sample?
What's your formula for now?
Are the 1 and 2 in the snapshot weeks?
Best Regards,
Dale
- redhol8 years agoFrequent Visitor
Hi Dale,
THanks for the reply - data for stock movements is shown below
And current formula is
Rolling Stock =
CALCULATE(
Sum(HR_StockMovements[MovementQty]),
Filter(
ALL('Calculations'[Date].[Date]),
'Calculations'[Date].[Date] <= MAX('Calculations'[Date].[Date])
)
)The date formulas are in a seperate table as I have a few different tables that the dashboard is pulling from.
And yes the 1 and 2 are weeks in the snapshot.
Many Thanks,
- v-jiascu-msft7 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
- redhol7 years agoFrequent Visitor
That works perfect.
Thanks for your help.