Forum Discussion
Anonymous
6 years agoNot applicable
Week over Week % change with Slicer capability
I am trying to create a waterfall chart which displays week over week % changes in inventory sliced by Customer_Name and DMA_Code. I have tried using example from previous posted solutions, but not ...
- 6 years ago
Anonymous
TryWoW Change = VAR lastWeekAmount = CALCULATE ( SUM ( INVENTORY[INVENTORY]), FILTER ( ALLSELECTED ( 'INVENTORY' ), 'INVENTORY'[Weeknum] = MIN ( 'INVENTORY'[Weeknum] ) - 1 ) ) RETURN DIVIDE ( SUM ( INVENTORY[INVENTORY] ) - lastWeekAmount, lastWeekAmount, 0 )________________________
If my answer was helpful, please consider Accept it as the solution to help the other members find it
Click on the Thumbs-Up icon if you like this reply 🙂
Fowmy
Super User
6 years agoAnonymous
Try
WoW Change =
VAR lastWeekAmount =
CALCULATE (
SUM ( INVENTORY[INVENTORY]),
FILTER (
ALLSELECTED ( 'INVENTORY' ),
'INVENTORY'[Weeknum] = MIN ( 'INVENTORY'[Weeknum] ) - 1
)
)
RETURN
DIVIDE ( SUM ( INVENTORY[INVENTORY] ) - lastWeekAmount, lastWeekAmount, 0 )
________________________
If my answer was helpful, please consider Accept it as the solution to help the other members find it
Click on the Thumbs-Up icon if you like this reply 🙂