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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
balafbm
Advocate I
Advocate I

DAX - Variable for exact date in Previous Quarter

Hi,

I have defined a variable in dax.

 

VAR X = DATE(2023,02,10)

 

 

I want to create another variable "Y", which would return the exact date one quarter ago.

I am unable to find a function which would return that. Any help will be appreciated.

2 REPLIES 2
HassanAshas
Helper V
Helper V

You can try EDATE 

 

Var Y = EDATE([VAR X], -3)

 

Since a Quarter is always 3 months back, so we can go 3 months back using EDATE. 

HassanAshas_0-1677079539500.png

 

 

FreemanZ
Super User
Super User

hi @balafbm 

try like:

VAR Y=EDATE(X, -3)

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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