Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
7 years ago
Solved

Filter but don't include the current week.

Hi,   My table has a date column & Week column. How do I filter the report using the report level filter to only show data up to but not including the current week?
  • v-piga-msft's avatar
    v-piga-msft
    7 years ago

    Hi Anonymous,

     

     

    Yes, you could create a calculated column with the formula below.

     

    Column =
    VAR week_ = 'Table'[week]
    VAR currentweek =
        WEEKNUM ( TODAY () )
    RETURN
        IF ( week_ < currentweek, 1, 0 )

    Then drag the calculated column to reported level filter and set like below.

     

     

    Best  Regards,

    Cherry