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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
barbaraferreira
Regular Visitor

DATEADD

Hi guys, 

 

I'm having a issue with the DAX function DATEADD, I'm trying to compare some metrics week by week, did you guys know how to use function with the interval of week?

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi.

Please provide some more information of what your data looks like and what you want to achive.

Regarding the function DATEADD: make sure you use correct syntax, e.g.:

 

New_Date = DATEADD('Sales'[Order Date], 30, DAY)

 


You might also consider looking into Time Intelligence Functions in Dax:
https://learn.microsoft.com/en-us/dax/time-intelligence-functions-dax

Or combine Calculate (second argument filter context) and Previous Week to calculate a sum or similar previous week:

 

Sales WoW = CALCULATE(SUM([Sales Amount]), PREVIOUSWEEK(Calendar[Date]))

 


Hope this helps you on your way.

Kind regards!

View solution in original post

1 REPLY 1
Anonymous
Not applicable

Hi.

Please provide some more information of what your data looks like and what you want to achive.

Regarding the function DATEADD: make sure you use correct syntax, e.g.:

 

New_Date = DATEADD('Sales'[Order Date], 30, DAY)

 


You might also consider looking into Time Intelligence Functions in Dax:
https://learn.microsoft.com/en-us/dax/time-intelligence-functions-dax

Or combine Calculate (second argument filter context) and Previous Week to calculate a sum or similar previous week:

 

Sales WoW = CALCULATE(SUM([Sales Amount]), PREVIOUSWEEK(Calendar[Date]))

 


Hope this helps you on your way.

Kind regards!

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

Check out the February 2026 Power BI update to learn about new features.

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.