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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
Sasha
Helper III
Helper III

DATEADD for moving Quarters

Hi,

Recently I needed to compare "moving" quarters (noit calendric), i.e: comparing March-May to December-February.

All my measures were built in the way of DATEADD(x, -1, QUARTER), and I was wondering if it's corrent for both calendric and moving Q or there are cases I should replace it with DATEADD(x, -3, MONTH)?

Is DATEADD(x, -3, MONTH) always the same as DATEADD(x, -1, QUARTER)?

1 ACCEPTED SOLUTION
OwenAuger
Super User
Super User

Hi @Sasha 

As far as I can tell from testing, those two expressions are interchangeable.

 

So for the purpose of DATEADD, a quarter is just shorthand for 3 months, and DATEADD doesn't apply any logic to do with aligning with quarters of a calendar year.


Owen Auger
Did I answer your question? Mark my post as a solution!
Blog
Twitter
LinkedIn

View solution in original post

1 REPLY 1
OwenAuger
Super User
Super User

Hi @Sasha 

As far as I can tell from testing, those two expressions are interchangeable.

 

So for the purpose of DATEADD, a quarter is just shorthand for 3 months, and DATEADD doesn't apply any logic to do with aligning with quarters of a calendar year.


Owen Auger
Did I answer your question? Mark my post as a solution!
Blog
Twitter
LinkedIn

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.