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
Anonymous
Not applicable

Fiscal Year Column from Date

Hi,

 

I'm looking to create a fiscal year column from a date entry but am having difficulty finding a current solution that matches my goal. For example, I'm looking for "FY21, 1st Qtr" from the date 7/1/2020 12:52:00 AM. The fiscal year begins July 1st.

 

Thanks in advance for your help!

1 ACCEPTED SOLUTION
d_gosbell
Super User
Super User

You could do this with a calculated column like the following

Fiscal Qtr = 
var year = YEAR('Date'[Date])
var month = MONTH('Date'[Date])
var quarter = QUARTER('Date'[Date])
var fiscal_year = if (month >= 7, year + 1, year)
var fiscal_year_name = "FY" & mod(fiscal_year, 100)
var fiscal_quarter = if(quarter > 2, quarter - 2, quarter + 2)
var fiscal_quarter_name = SWITCH(fiscal_quarter, 1, "1st Qtr",2,"2nd Qtr",3, "3rd Qtr", 4, "4th Qtr")
return fiscal_year_name & " " & fiscal_quarter_name

View solution in original post

2 REPLIES 2
Anonymous
Not applicable
d_gosbell
Super User
Super User

You could do this with a calculated column like the following

Fiscal Qtr = 
var year = YEAR('Date'[Date])
var month = MONTH('Date'[Date])
var quarter = QUARTER('Date'[Date])
var fiscal_year = if (month >= 7, year + 1, year)
var fiscal_year_name = "FY" & mod(fiscal_year, 100)
var fiscal_quarter = if(quarter > 2, quarter - 2, quarter + 2)
var fiscal_quarter_name = SWITCH(fiscal_quarter, 1, "1st Qtr",2,"2nd Qtr",3, "3rd Qtr", 4, "4th Qtr")
return fiscal_year_name & " " & fiscal_quarter_name

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!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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