Forum Discussion
2366
Helper I
4 years agoFilter Dates in Previous Week
Hello, How do I filter dates in last week (Monday to Sunday) in DAX? Thanks
- Anonymous4 years ago
Hi 2366
Check the formulas.
weekdays = WEEKDAY('Table'[date],2) weekstart = 'Table'[date]-'Table'[weekdays]+1 lastweekstart = 'Table'[weekstart]-7Combine three formulas:
Column =var week_day = WEEKDAY('Table'[date],2)var week_start = 'Table'[date]-week_day+1returnweek_start-7Best Regards,Jay
VahidDM
Super User
4 years agoHI 2366
Check this link:
https://www.vahiddm.com/post/weekly-time-intelligence-dax
If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
LinkedIn: www.linkedin.com/in/vahid-dm/