Forum Discussion
Anonymous
4 years agoNot applicable
Filter days based on weekday
Hi Everyone, I have a scenario wherein I want to filter the data on date column based on current day in the query editor. If refreshing on Monday, filter data from last 3 days(Sunday, Saturda...
- 4 years ago
Anonymous , Try = Table.SelectRows(#"Added Custom", each [StartDate] >= Date.From(Date.AddDays(DateTime.LocalNow(), (-1 * (if Date.DayOfWeek(DateTime.Date(DateTime.FixedLocalNow())) =0 then 3 else 1 )))))
lbendlin
4 years agoSuper User
Please provide sanitized sample data that fully covers your issue. If you paste the data into a table in your post or use one of the file services it will be easier to work with. Avoid posting screenshots of your source data if possible.
Please show the expected outcome based on the sample data you provided. Screenshots of the expected outcome are ok.