Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago
Solved

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...
  • az38's avatar
    6 years ago

    Hi Anonymous 

    try ALL()

    PrevWkSales :=
    CALCULATE(
    SUM('Sales'[CountOf]),
    FILTER(ALL('Calendar'),
    'Calendar'[WeekSequence] = 'Calendar'[WeekSequence] -1
    )
    )