Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

Previous Week Start and End Date

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.

 

2 ACCEPTED SOLUTIONS
richbenmintz
Resident Rockstar
Resident Rockstar

Hi @Anonymous,

Try the following

Last Week Start Date = (Today()-WEEKDAY(TODAY())+1)-7

Last Week End Date = (Today()-WEEKDAY(TODAY())+1)-1

 

richbenmintz_0-1620070117724.png

 

Thanks,



I hope this helps,
Richard

Did I answer your question? Mark my post as a solution! Kudos Appreciated!

Proud to be a Super User!


View solution in original post

sayaliredij
Solution Sage
Solution Sage

Hi You can check the following formula

 

FirstDayOfLastWeek =
var daynum = TODAY()
RETURN
daynum - (6 + WEEKDAY(daynum) )
 
LastDayOfLastWeek =
var daynum = TODAY()
RETURN
daynum - WEEKDAY(daynum)
 
Regards,
Sayali
If this post helps, then please consider Accept it as the solution to help others find it more quickly.




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




View solution in original post

3 REPLIES 3
sayaliredij
Solution Sage
Solution Sage

Hi You can check the following formula

 

FirstDayOfLastWeek =
var daynum = TODAY()
RETURN
daynum - (6 + WEEKDAY(daynum) )
 
LastDayOfLastWeek =
var daynum = TODAY()
RETURN
daynum - WEEKDAY(daynum)
 
Regards,
Sayali
If this post helps, then please consider Accept it as the solution to help others find it more quickly.




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




richbenmintz
Resident Rockstar
Resident Rockstar

Hi @Anonymous,

Try the following

Last Week Start Date = (Today()-WEEKDAY(TODAY())+1)-7

Last Week End Date = (Today()-WEEKDAY(TODAY())+1)-1

 

richbenmintz_0-1620070117724.png

 

Thanks,



I hope this helps,
Richard

Did I answer your question? Mark my post as a solution! Kudos Appreciated!

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? 

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors