Forum Discussion
Anonymous
6 years agoNot applicable
Previous Week using a Week Sequence
hello, I have 2 tables ('Sales' & 'Calendar') - calendar containing future dates - and I need to calculate the previous week based on a week sequence number (I hope this will solve the issue of w...
- 6 years ago
Hi Anonymous
try ALL()
PrevWkSales := CALCULATE( SUM('Sales'[CountOf]), FILTER(ALL('Calendar'), 'Calendar'[WeekSequence] = 'Calendar'[WeekSequence] -1 ) )
az38
Community Champion
6 years agoHi Anonymous
try ALL()
PrevWkSales :=
CALCULATE(
SUM('Sales'[CountOf]),
FILTER(ALL('Calendar'),
'Calendar'[WeekSequence] = 'Calendar'[WeekSequence] -1
)
)
- Anonymous6 years agoNot applicable
Thanks az38 , just gave that a whirl and doesn't return anything (as experienced in previously 😞 )