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
TobiasC
Frequent Visitor

DAX - ENDOFQUARTER results

I'm wanting to use the ENDOFQUARTER DAX function but am finding I'm getting an odd result.

 

in my view I should get the following list:

March Qtr = 31 Mar YY

June Qtr = 30 Jun YY

Sept Qtr = 30 Sep YY

Dec Qtr = 31 Dec YY

 

However the formula below seems to be returning the 1st day of the next quarter; ie 1 April, 1 July, 1 Sept, 1 December.

 

=ENDOFQUARTER(DateTime[DateKey])  

 

Just wondering if I'm doing something wrong? 

 

Also something semi related, do you need to have a separate date table to make time intelligence functions work?

 

 

1 ACCEPTED SOLUTION
v-yuezhe-msft
Employee
Employee

Hi @TobiasC,

I am not able to reproduce your issue, when I use ENDOFQUARTER function in a Date table, it returns the correct value.  Could you please share sample data of your scenario?

This similar blog also shows how to use ENDOFQUARTER function.

Thanks,
Lydia Zhang

Community Support Team _ Lydia Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
v-yuezhe-msft
Employee
Employee

Hi @TobiasC,

I am not able to reproduce your issue, when I use ENDOFQUARTER function in a Date table, it returns the correct value.  Could you please share sample data of your scenario?

This similar blog also shows how to use ENDOFQUARTER function.

Thanks,
Lydia Zhang

Community Support Team _ Lydia Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi @v-yuezhe-msft,

 

Thank you for the link.  Looks like it was probably my data! I've tried it on a similar data set (I discarded what I had been working on) and seems to come out OK.

 

Am I right that if the last day of the quarter isn't in the data set say 30 Sept that the function will report the higest value that is in the quarter?

 

Cheers, Tobias

Hi @TobiasC,

Based on my test, even if the last day of the quarter(for example, 9/30/2016) is in the Date table, the ENDOFQUARTER function will return the correct value(9/30/2016) for it.

Thanks,
Lydia Zhang

Community Support Team _ Lydia Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

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