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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
OlafK
Frequent Visitor

Date Table with only quarter end dates

Hello,

 

I'm currently facing a problem I can't solve. I use a date table but I'm not able to generate a a date table showing only quarter end dates.  I managed to get one with only month end dates by using EOMONTH function. But I can't use ENDOFQUARTER together with addcolumns.

 

My date table is created by

 

Date =
ADDCOLUMNS (FILTER (
CALENDAR ( DATE(2019,11,30), TODAY()),
[Date] = EOMONTH([Date], 0 )),
"DateAsInteger", FORMAT ( [Date], "YYYYMMDD" ),
"Year", YEAR ( [Date] ),
"Monthnumber", FORMAT ( [Date], "MM" ),
"YearMonthnumber", FORMAT ( [Date], "YYYY/MM" ),
"YearMonthShort", FORMAT ( [Date], "YYYY/mmm" ),
"MonthNameShort", FORMAT ( [Date], "mmm" ),
"MonthNameLong", FORMAT ( [Date], "mmmm" ),
"DayOfWeekNumber", WEEKDAY ( [Date] ),
"DayOfWeek", FORMAT ( [Date], "dddd" ),
"DayOfWeekShort", FORMAT ( [Date], "ddd" ),
"Quarter", "Q" & FORMAT ( [Date], "Q" ),
"YearQuarter", FORMAT ( [Date], "YYYY" ) & "/Q" & FORMAT ( [Date], "Q" ))

  

 

Thanks a lot

 

Olaf

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@OlafK , Try like

"Qtr End", EOMONTH([Date],if(3-mod(month([Date]),3)=3,0,3-mod(month([Date]),3)))

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@OlafK , Try like

"Qtr End", EOMONTH([Date],if(3-mod(month([Date]),3)=3,0,3-mod(month([Date]),3)))

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

Thanks a lot, even though my meaning was a bit different in showing only quarterend dates in the table, I just put your solution to another position and it worked quite well! 

 

Date =
ADDCOLUMNS (FILTER (
CALENDAR ( DATE(2019,11,30), TODAY()),
[Date] = EOMONTH([Date],if(3-mod(month([Date]),3)=3,0,3-mod(month([Date]),3)))),....

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.