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 ) )
amitchandak
6 years agoSuper User
Anonymous , Refer my Blog on Week for that
Anonymous
6 years agoNot applicable
Thanks amitchandak , I had come across this however if there are future dates in the table, the max rank doesn't work as it ranks future dates as well as the past dates?