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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
BratKat
Microsoft Employee
Microsoft Employee

Calculate Fiscal Year starting in July

Have columns with Date, Quarters, Year, MonthNo, Month 

 

DateColumns.png

 Tried a few calulations per New column to get Quarters starting in July I can use in a Slicer as dropdown or vertical list.

This reported a error (Our table is named Work Items) 

Fiscal Quarter = IF('Work Item'[Date].[Quarter]=3,1,IF('Work Item'[Date].[Quarter]=4,2,IF(Work Item'[Date].[Quarter]=1,3,4)))

 

BratKat_0-1683310978859.png

If anyone can suggest a calculation to use that would be apperiated.

 

Thank you 

 

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @BratKat ,

Please try these:

Fin Year = IF(MONTH('Work Items'[Date]) < 7,YEAR('Work Items'[Date])-1,YEAR('Work Items'[Date]))
FY = "FY " & VALUE('Work Items'[Fin Year]-1) & "-" & VALUE('Work Items'[Fin Year])
Qtr Year = "Q" & 'Work Items'[Fiscal Quarter] & " " & 'Work Items'[FY]
Qtr Year Sort = 'Work Items'[Fin Year]*10+'Work Items'[Fiscal Quarter]

vcgaomsft_0-1684292576763.png

 

Best Regards,
Gao

Community Support Team

 

If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

How to get your questions answered quickly --  How to provide sample data in the Power BI Forum

View solution in original post

6 REPLIES 6
Anonymous
Not applicable

Hi @BratKat ,

Please create a calculated column.

Fiscal Quarter = 
SWITCH(
    QUARTER('Work Items'[Date]),
    1,3,
    2,4,
    3,1,
    2
)

vcgaomsft_0-1683600195501.png

Best Regards,
Gao

Community Support Team

 

If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

How to get your questions answered quickly --  How to provide sample data in the Power BI Forum

Works well, is there a way to get the year to be displayed as well since our dates start in 2022 ? 

 

Thank you 

Anonymous
Not applicable

Hi @BratKat ,

Please try these:

Fin Year = IF(MONTH('Work Items'[Date]) < 7,YEAR('Work Items'[Date])-1,YEAR('Work Items'[Date]))
FY = "FY " & VALUE('Work Items'[Fin Year]-1) & "-" & VALUE('Work Items'[Fin Year])
Qtr Year = "Q" & 'Work Items'[Fiscal Quarter] & " " & 'Work Items'[FY]
Qtr Year Sort = 'Work Items'[Fin Year]*10+'Work Items'[Fiscal Quarter]

vcgaomsft_0-1684292576763.png

 

Best Regards,
Gao

Community Support Team

 

If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

How to get your questions answered quickly --  How to provide sample data in the Power BI Forum

FreemanZ
Super User
Super User

hi @BratKat 

supposing you have a table like:

Date
6/29/2022
6/30/2022
7/1/2022
7/2/2022
6/30/2023
7/1/2023
7/2/2023

try to add a calculated column like:

 

FY = 
VAR _year = RIGHT(YEAR([Date]),2)
RETURN
IF(
    MONTH([date])>=7,
    "FY"&_year&_year+1,
    "FY"&_year-1&_year
)

 

it worked like:

FreemanZ_1-1683456728316.png

 

BratKat
Microsoft Employee
Microsoft Employee

Tried your suggestion, however did not work as expected. 

My table name is Work Items and my column with dates is named Team Date 01 

So using your example my slicer looks like this 

 

 

BratKat_0-1683572847704.png

Which is not what I am trying to achive, hoping would look more like yours. Here is my column

FY =
VAR _year = RIGHT(YEAR('Work Items'[Team Date 01].[Date]),2)
RETURN
IF(
    MONTH('Work Items'[Team Date 01].[Date])>=7,
    "FY"&_year&_year+1,
    "FY"&_year-1&_year
 

 

 

FreemanZ
Super User
Super User

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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