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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
macgeorge
Helper I
Helper I

FIscal Year Display in Table

Hello all, apologies, I am new to Power BI and I would really appreciate your help. I am having an issue with the display of fiscal date in the table. I am using DAX below to create the Fiscal Year column and when it displays in the table the FY shows as 2019-20 which is what I want for the quarters and Q1 and Q2 are correct, however for Q3 and Q4 the FY is displayed like this 19-2020, which is wrong. I don't know why.

 

This is the DAX for Fiscal Year:

 

FY =
VAR CY = RIGHT(YEAR('Calendar'[Date]), 4)
VAR LY = RIGHT(YEAR('Calendar'[Date]) -1, 2)
VAR NY = RIGHT(YEAR('Calendar'[Date]) +1, 2)
VAR FiscalYear =
IF(
MONTH('Calendar'[Date]) >= 7,
CY & "-" & NY,
LY & "-" & CY
)
RETURN
FiscalYear
 
This is the DAX for Fiscal Quarter:
 
Fiscal Quarter =
"Q" &
CEILING(
MONTH(EDATE('Calendar'[Date],-6)),
3
) / 3
 
Ideally I want to report on events that occur in FY 20xx-xx (format) and the quarters to be displayed for the corresponding FY from 1 July 20xx to 30 June 20xx
 
This is what it looks like:
macgeorge_0-1664232058782.png

 

1 ACCEPTED SOLUTION
HotChilli
Super User
Super User

This part : LY & "-" & CY  is going to be "2 chars - 4 chars" so that's what needs to be fixed.

--

Also RIGHT should work on a text value but YEAR is going to return a number.  This may work but I would not rely on it.

View solution in original post

2 REPLIES 2
HotChilli
Super User
Super User

This part : LY & "-" & CY  is going to be "2 chars - 4 chars" so that's what needs to be fixed.

--

Also RIGHT should work on a text value but YEAR is going to return a number.  This may work but I would not rely on it.

Thank you HotChilli - that works perfectly. I appreciate your quick response. Cheers

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.