GrahamCracker19
New Member
- Joined
- Nov 4, 2015
- Messages
- 13
Looking for some help with a DAX formula to calculate the WoW percent change. I have the formula below but the card visual doesn't have any value displayed and I cannot figure out my error. Any help is much appreciated.
Power Query:
% Change Sales =
VAR CurrentValue = SUM('Sales'[Units])
VAR PreviousValue =
SWITCH(
TRUE(),
ISINSCOPE('Sales'[Report Date]), CALCULATE((SUM('Sales'[Units])), DATEADD('Sales'[Report Date].[Day], -7, DAY))
)
RETURN
DIVIDE(
CurrentValue - PreviousValue,
PreviousValue
)