Forum Discussion

modxplus's avatar
modxplus
Frequent Visitor
3 years ago
Solved

FIlter to Last Week Only

I am trying to set filter this table to a "Last Week Only" view.  I cant use the normal filter to last week due to the fact that my weeks run from Saturday to Friday and the date filter in Power Que...
  • Anonymous's avatar
    Anonymous
    3 years ago

    Just do

     

    Table.SelectRows(PriorStepOrTableName,each Date.WeekOfYear(Date.From(DateTime.LocalNow()), Day.Saturday)-1)

     

    --Nate