Forum Discussion

jb123's avatar
jb123
Frequent Visitor
9 years ago
Solved

Add column for Last Week to table

Hi,   I want to add a custom column to a table that will list the words Last Week.  I want to add this column so I can add slicer to the report so the users can filter to see just last week's data....
  • Vvelarde's avatar
    9 years ago

    jb123

     

    Hi, add a custom Column:

     

    = Table.AddColumn(#"YourPreviousStep", "LastWeek", each if Date.IsInPreviousWeek([Date]) then "Yes" else "No")