Forum Discussion
ConstMoss
Helper I
9 years agosame week last year
our week starts mon and ends sunday. when looking at sales and comparing with last year, how do we get the right dates? for example, if i want to compare this week (10/23/2017 to 10/29/2017) with l...
- 9 years ago
Hi, try with a measure like this:
VentasLY-SameWeek = CALCULATE ( SUM ( Ventas[Ventas] ), FILTER ( ALL ( Calendario ), Calendario[Año] = SELECTEDVALUE ( Calendario[Año] ) - 1 && Calendario[Semana] = SELECTEDVALUE ( Calendario[Semana] ) ) )I use a calendar table with year and week columns. (Calendario)
Regards
Victor
Lima - Peru
Ashish_Mathur
Super User
9 years agoHi ConstMoss,
October 23, 2017 is week number 43. October 24, 2016 is week number 44. So how does one determine the same week last year?