The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.
Hi I am trying to get previous week item counts, I was able to get the counts however having difficulty to capture previous week start date and previous week end date(week start from Sunday). I am trying with below expression but both returning current week start and end dates. Please advise.
Last Week Start Date = Today()-Weekday(Today()-1)+1
Last week End Date = Today()-Weekday(Today()-1)+7
I am expecting the result 4/25/2021 - 5/1/2021
Appreciate for help.
Solved! Go to Solution.
Hi @Anonymous,
Try the following
Last Week Start Date = (Today()-WEEKDAY(TODAY())+1)-7
Last Week End Date = (Today()-WEEKDAY(TODAY())+1)-1
Thanks,
Proud to be a Super User!
Hi You can check the following formula
Proud to be a Super User!
Hi You can check the following formula
Proud to be a Super User!
Hi @Anonymous,
Try the following
Last Week Start Date = (Today()-WEEKDAY(TODAY())+1)-7
Last Week End Date = (Today()-WEEKDAY(TODAY())+1)-1
Thanks,
Proud to be a Super User!
This is exactly what I needed and the missing parathensis from the original post is still tripping me. As in, why does the extra parathensis return the start of the week?
User | Count |
---|---|
68 | |
63 | |
59 | |
54 | |
28 |
User | Count |
---|---|
183 | |
80 | |
62 | |
46 | |
38 |