Forum Discussion
danzrust
9 years agoHelper IV
Week Over Week Calculations
Hi guys, There are few similar topics on this forum, but I have a feeling the all of them are trying to solve slighly different scenarios. I am playing with MoM and WoW calculations. I was a...
Vvelarde
8 years agoCommunity Champion
hi, try with this:
WoW =
VAR Week1 =
CALCULATE (
SUM ( Table1[Sales] ),
DATESINPERIOD ( Table1[Today], SELECTEDVALUE ( Table1[Today] ) - 1; -7, DAY )
)
VAR Week2 =
CALCULATE (
SUM ( Table1[Sales] ),
DATESINPERIOD ( Table1[Today], SELECTEDVALUE ( Table1[Today] ) - 8; -7, DAY )
)
RETURN
DIVIDE ( Week1, Week2 ) - 1regards
Victor
Lima . Peru
danzrust
8 years agoHelper IV
thank you! Another option I figured it myself long time ago. Abs diff:
Clicks WoW Abs =
(
SUMX(FILTER('AdWords KW Data L2W', RELATED('Calendar'[Last X Weeks])="Last Week-00"),'AdWords KW Data L2W'[Clicks])
-
SUMX(FILTER('AdWords KW Data L2W', RELATED('Calendar'[Last X Weeks])="Last Week-01"),'AdWords KW Data L2W'[Clicks])
)
I have custom calendar:
https://docs.google.com/spreadsheets/d/1-55vUYZrYKduI8tbuK5nk9GXBUc7X7uNMcS1mXRIdoI/edit#gid=0
Link for PBI (free to use):
DZ