Forum Discussion
rodrigoestrella
6 years agoFrequent Visitor
sum quantities over different time periods
Hello ! I have to calculate stock adjustments over sales in several stores of a supermarket in the period between the last stock count and today. The thing is that the stock count date is different...
- 6 years ago
rodrigoestrella, try this measure:
Adjustments = SUMX ( Merms, IF ( Merms[adjustment_date] >= RELATED ( DimStore[stock_date] ), Merms[amount] ) )Data model:
By store_id:
By location:
DataInsights
Super User
6 years agorodrigoestrella, try this measure:
Adjustments =
SUMX (
Merms,
IF ( Merms[adjustment_date] >= RELATED ( DimStore[stock_date] ), Merms[amount] )
)
Data model:
By store_id:
By location:
rodrigoestrella
6 years agoFrequent Visitor
Thanks a lot !!!!! It worked perfectly !!