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

The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!

Reply
Asad92
New Member

DAX function Previous

Hi, 

 

I see there is no PREVIOUSWEEK function in DAX. 

Could you please check and advise it there is any other alternative to calculate the previous week result. 

 

For your ready reference, I have attached a copy of the screen image with this email. 

 

Thanks regards,

Asad

 

Asad92_0-1659911804215.png

 

2 REPLIES 2
Ashish_Mathur
Super User
Super User

Hi,

In most cases, the DATESBETWEEN() function can also be used.  You need to share more data, describe your question and show the expected result.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
ronaldbalza2023
Continued Contributor
Continued Contributor

Hi @Asad92 , you have to make a WEEKNUM column on your date table in order to get the previous week. Check the link that might help you doing the previous week calculation. 😉

Solved: Re: Last week Dax - Microsoft Power BI Community
Solved: Re: Dax for Current Week & Previous Week - Microsoft Power BI Community
Calculate Previous Week Sales 

Helpful resources

Announcements
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.